From 0471aaf80260bf074fcbcd196fff26855cc67b19 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 5 Mar 2023 12:21:49 +0100 Subject: simplified test in linkhandler --- bin/guiscripts/linkhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/guiscripts/linkhandler') 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" "handling $url" -- cgit v1.2.3