Created
June 28, 2024 09:05
-
-
Save itsHanibee/5235c22b44e2d40641de3a79f41487a6 to your computer and use it in GitHub Desktop.
profile-sync-daemon support for Floorp Browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ -d "$HOME"/.floorp ]]; 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/.floorp/$profileItem" | |
fi | |
(( index=index+1 )) | |
done < <(grep '[Pp]'ath= "$HOME"/.floorp/profiles.ini | sed 's/[Pp]ath=//') | |
fi | |
check_suffix=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add the file to
/usr/share/psd/browsers/floorp
and then addfloorp
as a valid browser to.config/psd/psd.conf