commit 98df1c4a83399033b54f5e2613a1c84888850d6a parent f3b2c12aa15588ae6608c56627289089cac2c20e Author: awy <awy@awy.one> Date: Sat, 20 Dec 2025 16:39:03 +0300 fix when there is space in profile name Diffstat:
| M | .local/bin/chooseprofile | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/.local/bin/chooseprofile b/.local/bin/chooseprofile @@ -2,11 +2,10 @@ profiles=$(awk -F= '/^\[Profile/ {profile=$1} /Name/ && !/default/ {print $2}' ~/.mozilla/icecat/profiles.ini) -profile=$(echo "$profiles" | mew -p "Select IceCat Profile" -l 10) +profile=$(echo "$profiles" | mew -c -p "select profile" -l 10) if [ -z "$profile" ] || ! echo "$profiles" | rg -q "^$profile$"; then - echo "Invalid selection or no profile selected. Exiting." - exit 1 + exit 0 fi -swaymsg exec "icecat -P $profile" +swaymsg exec "icecat -P \"$profile\""