--- gnome-session-2.4.1/gnome-session/logout.c.org	2003-08-07 16:15:41.000000000 +0400
+++ gnome-session-2.4.1/gnome-session/logout.c	2003-10-15 17:11:25.000000000 +0400
@@ -322,7 +322,7 @@
   GtkWidget *image;
   GtkWidget *toggle_button = NULL;
   gint response;
-  gchar *s, *t;
+/*  gchar *s, *t; */
   GtkWidget *halt = NULL;
   GtkWidget *reboot = NULL;
   GtkWidget *invisible;
@@ -334,6 +334,7 @@
   GError *error = NULL;
   GdkScreen *screen;
   int monitor;
+/*  int PAMCONSOLE_DISABLED=0; */
 
   gsm_verbose ("display_gui: showing logout dialog\n");
 
@@ -421,14 +422,19 @@
 			  FALSE, TRUE, 0);
     }
 
-  /* Red Hat specific code to check if the user has a
-   * good chance of being able to shutdown the system,
-   * and if so, give them that option
+  /* Code to show the logout options.
+   * Check uid and if commands exist, and if pam_console
+   * is configured
    */
+
+  /*
+   * Slackware doesn't have /var/{log|run}/console/$username
+   * 
+ 
   s = g_strconcat ("/var/lock/console/", g_get_user_name (), NULL);
-  t = g_strconcat ("/var/run/console/", g_get_user_name (), NULL);
-  if (((geteuid () == 0) || g_file_exists (t) || g_file_exists(s)) &&
-      access (halt_command[0], X_OK) == 0)
+  t = g_strconcat ("/var/run/console/", g_get_user_name (), NULL); */
+  if ((geteuid () == 0) || (access (halt_command[0], X_OK) == 0 &&
+                            access (reboot_command[0], X_OK) == 0))
     {
       GtkWidget *title, *spacer;
       GtkWidget *action_vbox, *hbox;
