Index: src/manager.c
===================================================================
RCS file: /cvs/gnome/gnome-volume-manager/src/manager.c,v
retrieving revision 1.128
diff -u -B -p -r1.128 manager.c
--- src/manager.c	10 Feb 2006 22:08:25 -0000	1.128
+++ src/manager.c	21 Feb 2006 12:22:38 -0000
@@ -2900,9 +2900,15 @@ gvm_user_at_console (void)
 	char *path;
 	
 	if (!(exists & 0x2)) {
-		path = g_build_filename (GVM_CONSOLE_AUTH_DIR, g_get_user_name (), NULL);
-		exists = (access (path, F_OK) == 0) ? 0x3 : 0x2;
-		g_free (path);
+		if (access (GVM_CONSOLE_AUTH_DIR, F_OK) < 0) {
+			/* If /var/run/console does not exist (i.e. no pam_console) then we
+			 * assume that the user is always at the console. */
+			exists = 0x3;
+		} else {
+			path = g_build_filename (GVM_CONSOLE_AUTH_DIR, g_get_user_name (), NULL);
+			exists = (access (path, F_OK) == 0) ? 0x3 : 0x2;
+			g_free (path);
+		}
 	}
 	
 	return (exists & 0x1);
