summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore 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
@@ -740,7 +740,7 @@ void DesktopApplication::shutdown()
740 740
741void DesktopApplication::shutdown( ShutdownImpl::Type t ) 741void DesktopApplication::shutdown( ShutdownImpl::Type t )
742{ 742{
743 743 char *path[] = { "/sbin", "/usr/sbin", 0 };
744 char *opt = 0; 744 char *opt = 0;
745 745
746 switch ( t ) { 746 switch ( t ) {
@@ -751,7 +751,7 @@ void DesktopApplication::shutdown( ShutdownImpl::Type t )
751 if ( opt == 0 ) 751 if ( opt == 0 )
752 opt = "-r"; 752 opt = "-r";
753 753
754 if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, "/sbin", "/usr/sbin", ( void* ) 0 ) < 0 ) 754 if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, path ) < 0 )
755 ::syslog ( LOG_ERR, "Erroring execing shutdown\n" ); 755 ::syslog ( LOG_ERR, "Erroring execing shutdown\n" );
756 756
757 break; 757 break;