Use stderr for xsel logging when detached

This commit is contained in:
Chris Down 2017-03-19 07:31:01 +00:00
parent 19569a81bc
commit eecc031718
2 changed files with 2 additions and 2 deletions

View file

@ -24,5 +24,5 @@ if ! [[ -f "$file" ]]; then
fi
for selection in clipboard primary; do
xsel --logfile /dev/null -i --"$selection" < "$file"
xsel --logfile /dev/stderr -i --"$selection" < "$file"
done

View file

@ -7,7 +7,7 @@ lock_file=$cache_dir/lock
lock_timeout=2
_xsel() {
timeout 1 xsel --logfile /dev/null "$@"
timeout 1 xsel --logfile /dev/stderr "$@"
}
get_first_line() {