diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-06 09:40:11 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-06 09:40:11 +0100 |
commit | dd0c8a7f17010c3966cab08eab0b7fb0bfeda24e (patch) | |
tree | 249c74147493e85d5eefa59ed0989f51cd309bfc /bin/guiscripts/linkhandler | |
parent | b45ca4e7202f1cfb68fd22be6a8904e477e975c6 (diff) | |
parent | 368c78fdd6b9bfdc297bbbb5368d838d52ab0787 (diff) |
Merge remote-tracking branch 'refs/remotes/origin/main'
Diffstat (limited to 'bin/guiscripts/linkhandler')
-rwxr-xr-x | bin/guiscripts/linkhandler | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/guiscripts/linkhandler b/bin/guiscripts/linkhandler index a3a6b64..da2d656 100755 --- a/bin/guiscripts/linkhandler +++ b/bin/guiscripts/linkhandler @@ -6,11 +6,8 @@ # 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)" -else - url="$1" -fi dunstify "linkhandler" "<b>handling</b> $url" case "$url" in |