From 2097b0ebfdd07ae7a8295c26703d8d88ee7a5f8f Mon Sep 17 00:00:00 2001 From: iceyrazor Date: Wed, 10 Jun 2026 00:48:19 -0500 Subject: Squashed commit of the following: made all scripts mostly posix moved from gajim to dino --- env/.local/bin/system/url-handler.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'env/.local/bin/system/url-handler.sh') diff --git a/env/.local/bin/system/url-handler.sh b/env/.local/bin/system/url-handler.sh index d7be722..5d0e893 100755 --- a/env/.local/bin/system/url-handler.sh +++ b/env/.local/bin/system/url-handler.sh @@ -2,7 +2,7 @@ url=$@ prompt_message="Open with:" -echo $url +echo "$url" choices=" clipboard @@ -12,11 +12,11 @@ browser/xdg-open choice=$(echo "$choices" | sed /^$/d | rofi -dmenu "$prompt_message") choice=$(echo "$choice" | sed -e 's/browser\/xdg-open/xdg-open/') -if [ "$choice" == "clipboard" ]; then - if [ -z $WAYLAND_DISPLAY ]; then - printf "$url" | xclip -selection clipboard +if [ "$choice" = "clipboard" ]; then + if [ -z "$WAYLAND_DISPLAY" ]; then + printf -- "%s" "$url" | xclip -selection clipboard else - printf "$url" | wl-copy + printf -- "%s" "$url" | wl-copy fi else $choice "$url" & disown -- cgit v1.3