From 3cc6437abb62c169c1aa777cfc7d34383f7dc69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 12 Oct 2014 20:09:31 +0200 Subject: Fix default halt command in tdm on openbsd --- kcontrol/tdm/tdm-shut.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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")); } -- cgit v1.2.1