From 2d2502cc6705044e82cecaedd881f9192c7253e1 Mon Sep 17 00:00:00 2001 From: bbedward Date: Thu, 17 Sep 2026 09:46:13 -0400 Subject: [PATCH] qt: write real newlines in new qt5ct/qt6ct config fixes #3457 port 1.6 (cherry picked from commit 49a639a358b67138bf53a93a3f7243a2f67691e8) --- quickshell/scripts/qt.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/quickshell/scripts/qt.sh b/quickshell/scripts/qt.sh index 3da21676c..2045efc27 100755 --- a/quickshell/scripts/qt.sh +++ b/quickshell/scripts/qt.sh @@ -22,6 +22,8 @@ apply_qt_colors() { local config_file="$1" if [ -f "$config_file" ]; then + sed -i 's/^\[Appearance\]\\ncustom_palette=.*/[Appearance]/' "$config_file" + if grep -q '^\[Appearance\]' "$config_file"; then if grep -q '^custom_palette=' "$config_file"; then sed -i 's/^custom_palette=.*/custom_palette=true/' "$config_file" @@ -43,7 +45,7 @@ apply_qt_colors() { } >>"$config_file" fi else - printf '[Appearance]\\ncustom_palette=true\\ncolor_scheme_path=%s\\n' "$color_scheme_path" >"$config_file" + printf '[Appearance]\ncustom_palette=true\ncolor_scheme_path=%s\n' "$color_scheme_path" >"$config_file" fi }