plasma-firewall/plasma-firewall-5.22.0-find-ss-in-sbindir.patch

23 lines
1.0 KiB
Diff

--- plasma-firewall-5.22.0/kcm/backends/netstat/netstatclient.cpp.orig 2021-06-10 21:47:42.415281680 +0200
+++ plasma-firewall-5.22.0/kcm/backends/netstat/netstatclient.cpp 2021-06-10 21:51:38.145326862 +0200
@@ -20,7 +20,7 @@
, m_connections(new ConnectionsModel(this))
{
_self = this;
- mHasSS = !QStandardPaths::findExecutable("ss").isEmpty();
+ mHasSS = !QStandardPaths::findExecutable("ss", {"/usr/sbin", "/usr/bin"}).isEmpty();
}
bool NetstatClient::hasSS() const
--- plasma-firewall-5.22.0/kcm/backends/netstat/netstathelper.cpp.orig 2021-06-10 21:46:46.387327547 +0200
+++ plasma-firewall-5.22.0/kcm/backends/netstat/netstathelper.cpp 2021-06-10 21:47:23.696962293 +0200
@@ -33,7 +33,7 @@
*/
const QStringList netstatArgs( m_hasTimeoutError ? QStringList({"-tuap"}) : QStringList({"-tuapr"}));
- const QString executable = QStringLiteral("ss");
+ const QString executable = QStringLiteral("/usr/sbin/ss");
connect(
m_executableProcess, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished),