LibNyanpasu / clash-nyanpasu

Clash Nyanpasu~(∠・ω< )⌒☆​
https://nyanpasu.elaina.moe
GNU General Public License v3.0
6.87k stars 447 forks source link

system proxy doesn't support kde plasma(6) #853

Open wen-zheng opened 2 months ago

wen-zheng commented 2 months ago

需求 / Requirement

toggle system proxy supports kde plasma (I am on fedora 40 kde spin)

建议实现 / Suggested implements

no idea, but I know that fclash support kde plasma's system proxy

备注 / Addition details

No response

Clash Nyanpasu 版本号 / Clash Nyanpasu

1.5.1

是否为 Pre-release / Is pre-release version

no

自查步骤 / Verify steps

greenhat616 commented 2 months ago

@4o3F It seems that current Sysproxy not provide the KDE modifying. Should confirm it later. Thx. https://github.com/LibNyanpasu/clash-nyanpasu/blob/main/backend/sysproxy-rs/src/linux.rs

4o3F commented 2 months ago

Confirmed, KDE need a completely different way to set system proxy
The alternative command should look like

kwriteconfig --file kioslaverc --group 'Proxy Settings' --key ProxyType "1"
kwriteconfig --file kioslaverc --group 'Proxy Settings' --key httpProxy "http://127.0.0.1:1080"
kwriteconfig --file kioslaverc --group 'Proxy Settings' --key Authmode 0
4o3F commented 2 months ago

Also KDE 4 and 5 need different command, kwriteconfig for KDE 4 and kwriteconfig5 for KDE 5

wen-zheng commented 2 months ago

Also KDE 4 and 5 need different command, kwriteconfig for KDE 4 and kwriteconfig5 for KDE 5

and kwriteconfig6 for KDE 6