Update file run_onchange_after_20-apply-settings.mjs.tmpl

This commit is contained in:
Brian Zalewski 2023-01-09 07:29:23 +00:00
parent 2fd859f7bf
commit 23d18439b8

View file

@ -44,12 +44,9 @@ async function applyGsettings(settings) {
if (gsettings) {
for (const setting of settings) {
try {
console.log(setting.setting)
console.log('-- val ---')
console.log(setting.value)
const gsetting = setting.setting
const gsettingVal = setting.value
await $`gsettings set ` + ${gsetting} + `${gsettingVal}`
await $`gsettings set ` + gsetting + `${gsettingVal}`
} catch (e) {
log('error', 'Gsettings Failure', 'Failed to apply gsetting')
console.error(e)
@ -82,7 +79,7 @@ async function applyDconfSettings(settings) {
if (dconf) {
for (const setting of settings) {
try {
await $`dconf write ${setting.key} ${setting.value}`
await $`dconf write ${setting.key} ` + setting.value
} catch (e) {
log('error', 'Dconf Failure', 'Failed to apply dconf setting')
console.error(e)