diff -Nur fast-user-switch-applet-2.17.4/src/gdm-queue.c fast-user-switch-applet-2.17.4.new/src/gdm-queue.c
--- fast-user-switch-applet-2.17.4/src/gdm-queue.c	2007-02-23 00:28:42.000000000 +0100
+++ fast-user-switch-applet-2.17.4.new/src/gdm-queue.c	2007-02-27 07:29:26.000000000 +0100
@@ -237,10 +237,11 @@
 
         if (stat (GDM_NEW_SOCKET_FILENAME, &file_stat) == 0)
           strcpy (addr.sun_path, GDM_NEW_SOCKET_FILENAME);
-        if (stat (GDM_OLD_SOCKET_FILENAME, &file_stat) == 0)
-          strcpy (addr.sun_path, GDM_OLD_SOCKET_FILENAME);
         else
-          g_error ("Can't find gdm socket!");
+	  if (stat (GDM_OLD_SOCKET_FILENAME, &file_stat) == 0)
+            strcpy (addr.sun_path, GDM_OLD_SOCKET_FILENAME);
+          else
+            g_error ("Can't find gdm socket!");
 
         addr.sun_family = AF_UNIX;
 
