From 6b3740a65a3b8526ece4817f94a8c7ef9134f344 Mon Sep 17 00:00:00 2001 From: fro Date: Mon, 9 Feb 2026 09:12:34 -0500 Subject: [PATCH] -librewolf & disabled firefox firefox is replaced with librewolf, and all librewolf settings should be synced (let us see if that works or not) --- scripts/99_deploy.sh | 57 ++++++-------------------------------------- 1 file changed, 7 insertions(+), 50 deletions(-) diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 1088b4c..058604f 100755 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -144,38 +144,12 @@ deploy_file() { } # locate firefox's profile directory -firefox_profile_dir() { - ffdir=/home/${system_user}/.mozilla/firefox/ - - if ! [ -d "$ffdir" ] - then - echo "error: firefox main directory not found: '${ffdir}'" - else - pattern=".default-release" - old_dir=`pwd` - cd ${ffdir} - for _dir in *"${pattern}"*; do - [ -d "${_dir}" ] && dir="${_dir}" && break - done - cd ${old_dir} - - if [ -z "$dir" ] - then - echo "error: firefox profile directory not found" - else - ffprofiledir=${ffdir}${dir} - echo "${ffprofiledir}" - fi - fi -} - -# locate librewolf's profile directory -#librewolf_profile_dir() { -# ffdir=/home/${system_user}/.config/librewolf/librewolf/ +#firefox_profile_dir() { +# ffdir=/home/${system_user}/.mozilla/firefox/ # # if ! [ -d "$ffdir" ] # then -# echo "error: librewolf main directory not found: '${ffdir}'" +# echo "error: firefox main directory not found: '${ffdir}'" # else # pattern=".default-release" # old_dir=`pwd` @@ -187,7 +161,7 @@ firefox_profile_dir() { # # if [ -z "$dir" ] # then -# echo "error: librewolf profile directory not found" +# echo "error: firefox profile directory not found" # else # ffprofiledir=${ffdir}${dir} # echo "${ffprofiledir}" @@ -346,9 +320,9 @@ if [ ${operation} == "dots" ] ; then deploy_file "${dots_trg}/lf/${file_name}" "${file_path}/${file_name}" # firefox - file_name=policies.json - file_path=/usr/lib/firefox/distribution - deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}" no_chown + #file_name=policies.json + #file_path=/usr/lib/firefox/distribution + #deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}" no_chown ffpd=$(firefox_profile_dir) if [[ ${ffpd} == error* ]] ; then @@ -367,23 +341,6 @@ if [ ${operation} == "dots" ] ; then deploy_file "${dots_trg}/firefox/${file_name}" "${file_path}/${file_name}" fi - # librewolf (firefox alternative) - # using default policies, hence no need to deploy to "/usr/lib/librewolf/distribution/policies.json" - # no changes done to "userChrome.css" either - # and, prefs.js should be synced, using firefox sync. so should be nothing do do here. let us see if that is accurate. - -# lwpd=$(librewolf_profile_dir) -# if [[ ${lwpd} == error* ]] ; then -# echo ${lwpd} -# else -# file_name=user.js -# file_path=${ffpd} -# deploy_file "${dots_trg}/librewolf/${file_name}" "${file_path}/${file_name}" -# # https://stackoverflow.com/questions/525592/find-and-replace-inside-a-text-file-from-a-bash-command -# # https://askubuntu.com/questions/76808/how-do-i-use-variables-in-a-sed-command -# sed -i -e "s/{HOSTNAME}/${HOSTNAME}/g" "${file_path}/${file_name}" -# fi - # gtk (settings found using lxappearance) # note that the bookmarks file were found in two different locations, so a # symlink is created below. as well, ".gtkrc-2.0.mine" had no effect, so