After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333045 - user-at-console check is wrong
user-at-console check is wrong
Status: RESOLVED DUPLICATE of bug 333044
Product: gnome-volume-manager
Classification: Deprecated
Component: general
1.5.x
Other All
: Normal major
: ---
Assigned To: Gnome volume manager maintainers
Gnome volume manager maintainers
Depends on:
Blocks:
 
 
Reported: 2006-03-01 21:03 UTC by Tomasz Torcz
Modified: 2006-03-01 21:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Tomasz Torcz 2006-03-01 21:03:37 UTC
Please describe the problem:
My gnome-volume-manager was exiting during startup without any apparent reason.
Debugging showed nothing. But with strace I've found:

30024 access("/var/run/console/zdzichu", F_OK) = -1 ENOENT (No such file or
directory)

there is no such file on Slackware system. After changing gvm_user_at_console()
to always return TRUE, GVM initializes and runs as daemon.

So this check has to be either reworked or made optional. Also, I suggest
someting along

--- manager.c       2006-03-01 21:49:51.000000000 +0100
+++ manager.c.2 2006-03-01 21:51:52.000000000 +0100
@@ -3020,8 +3020,11 @@
                gnome_client_set_restart_style (client, GNOME_RESTART_ANYWAY);
        } else {
                gnome_client_set_restart_style (client, GNOME_RESTART_NEVER);
-               if (gvm_user_at_console ())
+               if (gvm_user_at_console ()) {
                        warn ("already running");
+               } else {
+                       warn ("user at console check failed");
+               }

                return 1;
        }

to make debugging easier.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
gnome-volume-manager-1.5.14
Comment 1 Jeffrey Stedfast 2006-03-01 21:34:30 UTC

*** This bug has been marked as a duplicate of 333044 ***