diff options
author | zachir <zachir@librem.one> | 2025-09-18 09:26:20 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-09-18 09:26:29 -0500 |
commit | 2bc5f8229702354ebdaba8b62ac7bd1e91eb029f (patch) | |
tree | 62e9492cb6185d432480e0d503a560c8858eb39a /qbc | |
parent | 36b65149d0a89fe29b0b8992a877ddd9705e5879 (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 'qbc')
-rwxr-xr-x | qbc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,12 +27,12 @@ CHOSEN=$(printf "default\n%s" "$SESSIONS" | dmenu -l 15 -p "qutebrowser" ${ARG:+ [ -z "$CHOSEN" ] && exit 2 if [ -n "$CHOSEN" ]; then if [ "$CHOSEN" = "default" ]; then - qutebrowser "$URL" + qutebrowser ${URL:+"$URL"} else if echo "$SESSIONS" | { ! grep -q "$CHOSEN" ; }; then qbpm new "$CHOSEN" fi - qbpm launch "$CHOSEN" "$URL" + qbpm launch "$CHOSEN" ${URL:+"$URL"} #qutebrowser -B "$HOME/.local/share/$CHOSEN" fi fi |