Initial commit
This commit is contained in:
commit
91b0ad73f3
10 changed files with 489 additions and 0 deletions
17
librewolf
Normal file
17
librewolf
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
if [[ -d "$HOME"/.librewolf ]]; then
|
||||
index=0
|
||||
PSNAME="$browser"
|
||||
while read -r profileItem; do
|
||||
if [[ $(echo "$profileItem" | cut -c1) = "/" ]]; then
|
||||
# path is not relative
|
||||
DIRArr[$index]="$profileItem"
|
||||
else
|
||||
# we need to append the default path to give a
|
||||
# fully qualified path
|
||||
DIRArr[$index]="$HOME/.librewolf/$profileItem"
|
||||
fi
|
||||
(( index=index+1 ))
|
||||
done < <(grep '[Pp]'ath= "$HOME"/.librewolf/profiles.ini | sed 's/[Pp]ath=//')
|
||||
fi
|
||||
|
||||
check_suffix=1
|
||||
Loading…
Add table
Add a link
Reference in a new issue