mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 19:30:26 +08:00
fixing KDE system proxy settings
damn kwriteconfig5 needs you to use double quote
This commit is contained in:
parent
4ed028d77a
commit
ffae054fe9
@ -250,7 +250,7 @@ namespace Qv2ray::components::proxy
|
|||||||
// for KDE:
|
// for KDE:
|
||||||
if (isKDE)
|
if (isKDE)
|
||||||
{
|
{
|
||||||
actions << QString("kwriteconfig5 --file %1/kioslaverc --group 'Proxy Settings' --key %2Proxy 'http://%3 %4'")
|
actions << QString(R"(kwriteconfig5 --file "%1/kioslaverc" --group "Proxy Settings" --key %2Proxy "http://%3 %4")")
|
||||||
.arg(configPath, protocol, address, QSTRN(httpPort));
|
.arg(configPath, protocol, address, QSTRN(httpPort));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -268,7 +268,7 @@ namespace Qv2ray::components::proxy
|
|||||||
// for KDE:
|
// for KDE:
|
||||||
if (isKDE)
|
if (isKDE)
|
||||||
{
|
{
|
||||||
actions << QString("kwriteconfig5 --file %1/kioslaverc --group 'Proxy Settings' --key socksProxy 'socks://%2 %3'")
|
actions << QString(R"(kwriteconfig5 --file "%1/kioslaverc" --group "Proxy Settings" --key socksProxy "socks://%2 %3")")
|
||||||
.arg(configPath, address, QSTRN(socksPort));
|
.arg(configPath, address, QSTRN(socksPort));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -284,7 +284,7 @@ namespace Qv2ray::components::proxy
|
|||||||
if (isKDE)
|
if (isKDE)
|
||||||
{
|
{
|
||||||
LOG(MODULE_PROXY, "KDE detected")
|
LOG(MODULE_PROXY, "KDE detected")
|
||||||
actions << QString("kwriteconfig5 --file %1/kioslaverc --group 'Proxy Settings' --key ProxyType 1").arg(configPath);
|
actions << QString(R"(kwriteconfig5 --file "%1/kioslaverc" --group "Proxy Settings" --key ProxyType 1)").arg(configPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -408,7 +408,7 @@ namespace Qv2ray::components::proxy
|
|||||||
// for KDE:
|
// for KDE:
|
||||||
if (isKDE)
|
if (isKDE)
|
||||||
{
|
{
|
||||||
actions << QString("kwriteconfig5 --file %1/kioslaverc --group 'Proxy Settings' --key ProxyType 0").arg(configRoot);
|
actions << QString(R"(kwriteconfig5 --file "%1/kioslaverc" --group "Proxy Settings" --key ProxyType 0)").arg(configRoot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user