summaryrefslogtreecommitdiff
path: root/ffc
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2025-09-18 09:26:20 -0500
committerzachir <zachir@librem.one>2025-09-18 09:26:29 -0500
commit2bc5f8229702354ebdaba8b62ac7bd1e91eb029f (patch)
tree62e9492cb6185d432480e0d503a560c8858eb39a /ffc
parent36b65149d0a89fe29b0b8992a877ddd9705e5879 (diff)
Fix browser scripts with URL
They were launching with "" as URL if none provided; now there is no arg if none is provided.
Diffstat (limited to 'ffc')
-rwxr-xr-xffc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffc b/ffc
index a0be53e..912b9e2 100755
--- a/ffc
+++ b/ffc
@@ -44,8 +44,8 @@ PROFILES="$NATIVE_PROFILES$INT$FLATPAK_PROFILES"
CHOSEN=$(printf "%s" "$PROFILES" | dmenu -l 15 -p "firefox" ${ARG:+"$ARG"})
[ -z "$CHOSEN" ] && exit 2
if echo "$CHOSEN" | grep -qE ' F$'; then
- exec flatpak run org.mozilla.Firefox -P "$(echo "$CHOSEN" | sed 's/ F$//')" "$URL"
+ exec flatpak run org.mozilla.Firefox -P "$(echo "$CHOSEN" | sed 's/ F$//')" ${URL:+"$URL"}
else
- exec firefox -P "$CHOSEN" "$URL"
+ exec firefox -P "$CHOSEN" ${URL:+"$URL"}
fi
#}}}