diff options
author | Denis Kozadaev <[email protected]> | 2023-06-06 21:15:57 +0300 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-06-20 17:22:57 +0900 |
commit | c449ec1768b03e3e43b9c7f6a827b2d59b1e7ea0 (patch) | |
tree | a674670aa5463242417a4e909f77f823ad391555 /tdm/config.def | |
parent | 22937e157705c7d5c31e12ab0ce8551c322a3d2e (diff) | |
download | tdebase-c449ec1768b03e3e43b9c7f6a827b2d59b1e7ea0.tar.gz tdebase-c449ec1768b03e3e43b9c7f6a827b2d59b1e7ea0.zip |
Find power related system tools instead of hardcode them
Signed-off-by: Denis Kozadaev <[email protected]>
(cherry picked from commit 3c23abfd84440d769bc20707e04cb356ddb48c1a)
Diffstat (limited to 'tdm/config.def')
-rw-r--r-- | tdm/config.def | 15 |
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" |