summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorDenis Kozadaev <[email protected]>2023-06-06 21:15:57 +0300
committerDenis Kozadaev <[email protected]>2023-06-20 11:17:21 +0300
commit3c23abfd84440d769bc20707e04cb356ddb48c1a (patch)
tree183d393557f700ae20f7121ec4b5a9da4c9e8e13 /tdm
parentdc8852cc1d6b347fe4681ef24f31732c6d96bb8b (diff)
downloadtdebase-3c23abfd84440d769bc20707e04cb356ddb48c1a.tar.gz
tdebase-3c23abfd84440d769bc20707e04cb356ddb48c1a.zip
Find power related system tools instead of hardcode them
Signed-off-by: Denis Kozadaev <[email protected]>
Diffstat (limited to 'tdm')
-rw-r--r--tdm/config.def15
1 files changed, 2 insertions, 13 deletions
diff --git a/tdm/config.def b/tdm/config.def
index 7ffdd2376..43de11c71 100644
--- a/tdm/config.def
+++ b/tdm/config.def
@@ -33,19 +33,8 @@
#define TDMCONF KDE_CONFDIR "/tdm"
#define TDMDATA KDE_DATADIR "/tdm"
-#ifdef _AIX
-# define HALT_CMD "/usr/sbin/shutdown -h now"
-# define REBOOT_CMD "/usr/sbin/shutdown -r now"
-#elif defined(BSD)
-# define HALT_CMD "/sbin/shutdown -h now"
-# define REBOOT_CMD "/sbin/shutdown -r now"
-#elif defined(__SVR4)
-# define HALT_CMD "/usr/sbin/halt"
-# define REBOOT_CMD "/usr/sbin/reboot"
-#else
-# define HALT_CMD "/sbin/poweroff"
-# define REBOOT_CMD "/sbin/reboot"
-#endif
+# define HALT_CMD POWEROFF_BINARY
+# define REBOOT_CMD REBOOT_BINARY
#if defined(BSD) || defined(__linux__)
# define DEF_USER_PATH "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games"