From 8437a6cb4e922f71ca176b047d4547ae617ccb63 Mon Sep 17 00:00:00 2001 From: Shanoa Ice <25174488+shanoaice@users.noreply.github.com> Date: Sat, 30 Sep 2023 16:44:58 +0800 Subject: [PATCH] Fix set KDE system proxy --- common/settings/proxy_linux.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/settings/proxy_linux.go b/common/settings/proxy_linux.go index af379c6d..4211b2f8 100644 --- a/common/settings/proxy_linux.go +++ b/common/settings/proxy_linux.go @@ -71,7 +71,7 @@ func (p *LinuxSystemProxy) Enable() error { } } if p.hasKWriteConfig5 { - err := p.runAsUser("kwriteconfig5", "--file", "kioslaverc", "--group", "'Proxy Settings'", "--key", "ProxyType", "1") + err := p.runAsUser("kwriteconfig5", "--file", "kioslaverc", "--group", "Proxy Settings", "--key", "ProxyType", "1") if err != nil { return err } @@ -83,7 +83,7 @@ func (p *LinuxSystemProxy) Enable() error { if err != nil { return err } - err = p.runAsUser("kwriteconfig5", "--file", "kioslaverc", "--group", "'Proxy Settings'", "--key", "Authmode", "0") + err = p.runAsUser("kwriteconfig5", "--file", "kioslaverc", "--group", "Proxy Settings", "--key", "Authmode", "0") if err != nil { return err } @@ -104,7 +104,7 @@ func (p *LinuxSystemProxy) Disable() error { } } if p.hasKWriteConfig5 { - err := p.runAsUser("kwriteconfig5", "--file", "kioslaverc", "--group", "'Proxy Settings'", "--key", "ProxyType", "0") + err := p.runAsUser("kwriteconfig5", "--file", "kioslaverc", "--group", "Proxy Settings", "--key", "ProxyType", "0") if err != nil { return err }