diff options
author | François Andriot <francois.andriot@free.fr> | 2014-10-12 20:09:31 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-10-12 20:09:31 +0200 |
commit | 3cc6437abb62c169c1aa777cfc7d34383f7dc69f (patch) | |
tree | ac9487a87accc32a996847dc3c4d16ca6353ac88 /kcontrol/tdm/tdm-shut.cpp | |
parent | a501cd747c2f34db196be4bfd60de36060f4d439 (diff) | |
download | tdebase-3cc6437abb62c169c1aa777cfc7d34383f7dc69f.tar.gz tdebase-3cc6437abb62c169c1aa777cfc7d34383f7dc69f.zip |
Fix default halt command in tdm on openbsd
Diffstat (limited to 'kcontrol/tdm/tdm-shut.cpp')
-rw-r--r-- | kcontrol/tdm/tdm-shut.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kcontrol/tdm/tdm-shut.cpp b/kcontrol/tdm/tdm-shut.cpp index c24f22dd2..14e681d18 100644 --- a/kcontrol/tdm/tdm-shut.cpp +++ b/kcontrol/tdm/tdm-shut.cpp @@ -209,7 +209,11 @@ void TDMSessionsWidget::load() config->setGroup("Shutdown"); restart_lined->setURL(config->readEntry("RebootCmd", "/sbin/reboot")); +#if defined(__OpenBSD__) + shutdown_lined->setURL(config->readEntry("HaltCmd", "/sbin/halt -p")); +#else shutdown_lined->setURL(config->readEntry("HaltCmd", "/sbin/poweroff")); +#endif bm_combo->setCurrentId(config->readEntry("BootManager", "None")); } |