From 41345355a860459d37406df28d97ccb704f07037 Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 10 Feb 2023 16:13:03 -0600 Subject: fix lwc for flatpaks --- lwc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lwc') diff --git a/lwc b/lwc index d5896ae..05aa370 100755 --- a/lwc +++ b/lwc @@ -5,7 +5,7 @@ else unset NATIVE_PROFILES fi if [ -f ~/.var/app/io.gitlab.librewolf-community/.librewolf/profiles.ini ]; then - FLATPAK_PROFILES=`grep 'Path=' ~/.var/app/io.gitlab.librewolf-community/.librewolf/profiles.ini | cut -d'.' -f2 | sed 's/$/ F/g'2` + FLATPAK_PROFILES=`grep 'Path=' ~/.var/app/io.gitlab.librewolf-community/.librewolf/profiles.ini | cut -d'.' -f2 | sed 's/$/ F/g'` else unset FLATPAK_PROFILES fi @@ -15,7 +15,7 @@ fi PROFILES="$NATIVE_PROFILES$INT$FLATPAK_PROFILES" CHOSEN=`printf "$PROFILES" | dmenu -l 15` [ -z "$CHOSEN" ] && exit 2 -if `echo "$CHOSEN" grep -q ' F$'`; then +if `echo "$CHOSEN" | grep -qE ' F$'`; then exec flatpak run io.gitlab.librewolf-community -P `echo "$CHOSEN" | sed 's/ F$//'` "$@" else exec librewolf -P "$CHOSEN" "$@" -- cgit v1.2.3