summaryrefslogtreecommitdiffstats
path: root/kcontrol/tdm/tdm-shut.cpp
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-12 20:09:31 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-12 20:09:31 +0200
commit3cc6437abb62c169c1aa777cfc7d34383f7dc69f (patch)
treeac9487a87accc32a996847dc3c4d16ca6353ac88 /kcontrol/tdm/tdm-shut.cpp
parenta501cd747c2f34db196be4bfd60de36060f4d439 (diff)
downloadtdebase-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.cpp4
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"));
}