+ librewolf (likely not needed)
This commit is contained in:
@@ -169,6 +169,32 @@ firefox_profile_dir() {
|
||||
fi
|
||||
}
|
||||
|
||||
# locate librewolf's profile directory
|
||||
#librewolf_profile_dir() {
|
||||
# ffdir=/home/${system_user}/.config/librewolf/librewolf/
|
||||
#
|
||||
# if ! [ -d "$ffdir" ]
|
||||
# then
|
||||
# echo "error: librewolf 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: librewolf profile directory not found"
|
||||
# else
|
||||
# ffprofiledir=${ffdir}${dir}
|
||||
# echo "${ffprofiledir}"
|
||||
# fi
|
||||
# fi
|
||||
#}
|
||||
|
||||
# ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
|
||||
# dots (dot files)
|
||||
@@ -205,7 +231,7 @@ if [ ${operation} == "dots" ] ; then
|
||||
file_path=/etc
|
||||
deploy_file "${dots_trg}/environment/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
|
||||
# mimeapps
|
||||
# mimeapps (available applications: `/usr/share/applications/`)
|
||||
file_name=mimeapps.list
|
||||
file_path=/home/${system_user}/.config
|
||||
deploy_file "${dots_trg}/mimeapps/${file_name}" "${file_path}/${file_name}" no_chown
|
||||
@@ -341,6 +367,23 @@ 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