- Add icewm-use-iproute2-ss-instead-of-netstat.patch: Because netstat is not available by default, so call "ss" instead of "netstat", and make the "clock" command work on icewm ( bsc#1079627 ). OBS-URL: https://build.opensuse.org/request/show/580525 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/icewm?expand=0&rev=91
19 lines
1021 B
Diff
19 lines
1021 B
Diff
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
|