lxde-overlay / lxde-base / lxpanel / files / lxpanel-logout.patch

diff -p -up lxpanel-0.3.8.1/src/configurator.c.logout lxpanel-0.3.8.1/src/configurator.c
--- lxpanel-0.3.8.1/src/configurator.c.logout	2008-06-11 05:51:19.000000000 +0200
+++ lxpanel-0.3.8.1/src/configurator.c	2008-10-16 11:03:07.000000000 +0200
@@ -1037,14 +1037,14 @@ void restart(void)
 
 void logout(void)
 {
-    const char* logout_cmd = logout_cmd;
+    const char* l_logout_cmd = logout_cmd;
     /* If LXSession is running, _LXSESSION_PID will be set */
-    if( ! logout_cmd && getenv("_LXSESSION_PID") )
-        logout_cmd = "lxsession-logout";
+    if( ! l_logout_cmd && getenv("_LXSESSION_PID") )
+        l_logout_cmd = "lxsession-logout";
 
-    if( logout_cmd ) {
+    if( l_logout_cmd ) {
         GError* err = NULL;
-        if( ! g_spawn_command_line_async( logout_cmd, &err ) ) {
+        if( ! g_spawn_command_line_async( l_logout_cmd, &err ) ) {
             show_error( NULL, err->message );
             g_error_free( err );
         }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.