summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 5ecc8bf..ba4fd66 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -742,3 +742,2 @@ void DesktopApplication::shutdown( ShutdownImpl::Type t )
742{ 742{
743 char *path[] = { "/sbin", "/usr/sbin", 0 };
744 char *opt = 0; 743 char *opt = 0;
@@ -753,4 +752,5 @@ void DesktopApplication::shutdown( ShutdownImpl::Type t )
753 752
754 if ( execle( "shutdown", "shutdown", opt, "now", ( void* ) 0, path ) < 0 ) 753 if ( execl( "/sbin/shutdown", "shutdown", opt, "now", ( void* ) 0) < 0 )
755 ::syslog ( LOG_ERR, "Erroring execing shutdown\n" ); 754 perror("shutdown");
755 // ::syslog ( LOG_ERR, "Erroring execing shutdown\n" );
756 756