Update file run_onchange_after_20-apply-settings.mjs.tmpl

This commit is contained in:
Brian Zalewski 2023-01-09 01:15:55 +00:00
parent b95c546987
commit a64815f5a2

View file

@ -8,7 +8,7 @@
async function loadThemeSettings() { async function loadThemeSettings() {
try { try {
const themeSettingsFile = `${process.env.HOME}/.config/desktop/settings.yml` const themeSettingsFile = `${process.env.HOME}/.config/desktop/settings.yml`
if (fileExists(settingsFile)) { if (fileExists(themeSettingsFile)) {
const text = fs.readFileSync(themeSettingsFile).toString() const text = fs.readFileSync(themeSettingsFile).toString()
return YAML.parse(text) return YAML.parse(text)
} else { } else {
@ -25,7 +25,7 @@ async function loadThemeSettings() {
async function loadGnomeSettings() { async function loadGnomeSettings() {
try { try {
const gnomeSettingsFile = `${process.env.HOME}/.config/desktop/gnome.yml` const gnomeSettingsFile = `${process.env.HOME}/.config/desktop/gnome.yml`
if (fileExists(settingsFile)) { if (fileExists(gnomeSettingsFile)) {
const text = fs.readFileSync(gnomeSettingsFile).toString() const text = fs.readFileSync(gnomeSettingsFile).toString()
return YAML.parse(text) return YAML.parse(text)
} else { } else {