Update file run_onchange_after_20-apply-settings.mjs.tmpl
This commit is contained in:
parent
2fd859f7bf
commit
23d18439b8
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue