summaryrefslogtreecommitdiffstats
path: root/kcontrol/tdm/tdm-shut.cpp
diff options
context:
space:
mode:
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"));
}