summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-05 12:21:49 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-05 12:21:49 +0100
commit0471aaf80260bf074fcbcd196fff26855cc67b19 (patch)
treed1162019fb51d024e200ab35cd37d12681850e13 /bin
parentb75ec24e80504b24b1d35f6d6c6d55b14f564517 (diff)
simplified test in linkhandler
Diffstat (limited to 'bin')
-rwxr-xr-xbin/guiscripts/linkhandler2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/guiscripts/linkhandler b/bin/guiscripts/linkhandler
index c055302..da2d656 100755
--- a/bin/guiscripts/linkhandler
+++ b/bin/guiscripts/linkhandler
@@ -6,7 +6,7 @@
# if a music file or pdf, it will download,
# otherwise it opens link in browser.
-if [ -z "$1" ]; then
+test -z "${url:=$1}" &&
url="$(xclip -sel c -o)"
dunstify "linkhandler" "<b>handling</b> $url"