This commit is contained in:
vinceliuice 2021-05-30 19:55:49 +08:00
parent 34786640b9
commit 1209168a94
2 changed files with 7 additions and 6 deletions

View file

@ -434,7 +434,8 @@ revert_gdm_theme() {
install_firefox_theme() { install_firefox_theme() {
remove_firefox_theme remove_firefox_theme
userify cp -rf "${FIREFOX_SRC_DIR}" "${FIREFOX_THEME_DIR}" [[ ! -d "${FIREFOX_THEME_DIR}" ]] && mkdir -p ${FIREFOX_THEME_DIR}
userify cp -rf "${FIREFOX_SRC_DIR}"/* "${FIREFOX_THEME_DIR}"
config_firefox config_firefox
} }
@ -462,8 +463,8 @@ edit_firefox_theme_prefs() {
} }
remove_firefox_theme() { remove_firefox_theme() {
rm -rf "${FIREFOX_DIR_HOME}/"*"default"*"/chrome" # rm -rf "${FIREFOX_DIR_HOME}/"*"default"*"/chrome"
rm -rf "${FIREFOX_THEME_DIR}" rm -rf "${FIREFOX_THEME_DIR}/WhiteSur"
} }
############################################################################### ###############################################################################

View file

@ -69,7 +69,7 @@ while [[ $# -gt 0 ]]; do
if [[ -d "${FIREFOX_FLATPAK_DIR_HOME}" ]]; then if [[ -d "${FIREFOX_FLATPAK_DIR_HOME}" ]]; then
FIREFOX_DIR_HOME=${FIREFOX_FLATPAK_DIR_HOME} FIREFOX_DIR_HOME=${FIREFOX_FLATPAK_DIR_HOME}
mkdir -p ${FIREFOX_FLATPAK_THEME_DIR} [[ ! -d "${FIREFOX_FLATPAK_THEME_DIR}" ]] && mkdir -p ${FIREFOX_FLATPAK_THEME_DIR}
FIREFOX_THEME_DIR=${FIREFOX_FLATPAK_THEME_DIR} FIREFOX_THEME_DIR=${FIREFOX_FLATPAK_THEME_DIR}
fi; fi;