mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-04 23:02:48 +00:00
ags steal
This commit is contained in:
9
desktops/hyprland/ags/scripts/utils/find_firefox_profile.sh
Executable file
9
desktops/hyprland/ags/scripts/utils/find_firefox_profile.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ~/.mozilla/firefox/
|
||||
if [[ $(grep '\[Profile[^0]\]' profiles.ini) ]]
|
||||
then PROFPATH=$(grep -E '^\[Profile|^Path|^Default' profiles.ini | grep -1 '^Default=1' | grep '^Path' | cut -c6-)
|
||||
else PROFPATH=$(grep 'Path=' profiles.ini | sed 's/^Path=//')
|
||||
fi
|
||||
|
||||
echo "$HOME/.mozilla/firefox/$PROFPATH"
|
||||
Reference in New Issue
Block a user