summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/desktop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 4c239a6..5ecc8bf 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -739,9 +739,9 @@ void DesktopApplication::shutdown()
}
void DesktopApplication::shutdown( ShutdownImpl::Type t )
{
-
+ char *path[] = { "/sbin", "/usr/sbin", 0 };
char *opt = 0;
switch ( t ) {
case ShutdownImpl::ShutdownSystem:
@@ -750,9 +750,9 @@ void DesktopApplication::shutdown( ShutdownImpl::Type t )
case ShutdownImpl::RebootSystem:
if ( opt == 0 )
opt = "-r";
- if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, "/sbin", "/usr/sbin", ( void* ) 0 ) < 0 )
+ if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, path ) < 0 )
::syslog ( LOG_ERR, "Erroring execing shutdown\n" );
break;
case ShutdownImpl::RestartDesktop: