File icewm-use-iproute2-ss-instead-of-netstat.patch of Package icewm.14885

diff --git a/src/default.h b/src/default.h
index a5e9a52..acc671a 100644
--- a/src/default.h
+++ b/src/default.h
@@ -200,8 +200,12 @@ XIV(int, taskBarNetDelay,                       500)
 XSV(const char *, cpuCommand,                   "xterm -name top -title Process\\ Status -e top")
 XSV(const char *, cpuClassHint,                 "top.XTerm")
 XIV(bool, cpuCombine,                           true)
-XSV(const char *, netCommand,                   "xterm -name netstat -title 'Network Status' -e netstat -c")
 XSV(const char *, netClassHint,                 "netstat.XTerm")
+#ifdef __linux__
+XSV(const char *, netCommand,                   "xterm -name netstat -title 'Network Status' -e sh -c 'which ss > /dev/null && watch -t ss -putsw || netstat -c'")
+#else
+XSV(const char *, netCommand,                   "xterm -name netstat -title 'Network Status' -e netstat -c")
+#endif
 XSV(const char *, netDevice,                    "eth0 wlan0")
 XSV(const char *, addressBarCommand,            0)
 #ifdef CONFIG_I18N
openSUSE Build Service is sponsored by