Skip to content

Instantly share code, notes, and snippets.

@itsHanibee
Created June 28, 2024 09:05
Show Gist options
  • Save itsHanibee/5235c22b44e2d40641de3a79f41487a6 to your computer and use it in GitHub Desktop.
Save itsHanibee/5235c22b44e2d40641de3a79f41487a6 to your computer and use it in GitHub Desktop.
profile-sync-daemon support for Floorp Browser
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
@itsHanibee
Copy link
Author

add the file to /usr/share/psd/browsers/floorp and then add floorp as a valid browser to .config/psd/psd.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment