From a16009c55e0ca5c172183062694c2378c7509486 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 9 Jan 2023 13:07:48 +0000 Subject: [PATCH] Update file run_onchange_after_20-apply-settings.mjs.tmpl --- .../universal/run_onchange_after_20-apply-settings.mjs.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_20-apply-settings.mjs.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_20-apply-settings.mjs.tmpl index 46aac0d9..f8b83271 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_20-apply-settings.mjs.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_20-apply-settings.mjs.tmpl @@ -68,7 +68,8 @@ async function applyXconfSettings(settings) { for (const setting of settings) { try { const xfconfType = setting.value_type ? setting.value_type : 'string' - await $`xfconf-query --channel '${setting.channel}' --property '${setting.property}' --type ${xfconfType} --set ${setting.value}` + const xfCmd = 'xfconf-query --channel \'' + setting.channel + '\' --property \'' + setting.property + '\' --type ' + xfconfType + ' --set ' + setting.value + execSync(xfCmd) } catch (e) { log('error', 'Xfconf', 'Failed to apply gsetting') console.error(e) @@ -85,7 +86,7 @@ async function applyDconfSettings(settings) { for (const setting of settings) { try { const dconfCmd = 'dconf write ' + setting.key + ' ' + setting.value - await $(dconfCmd) + execSync(dconfCmd) log('success', 'Dconf', 'Changed ' + setting.key + ' to ' + setting.value) } catch (e) { log('error', 'Dconf', 'Failed to apply dconf setting')