-librewolf & disabled firefox
firefox is replaced with librewolf, and all librewolf settings should be synced (let us see if that works or not)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user