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 83835 - gnome-session doesn't handle multiple concurrent logins
gnome-session doesn't handle multiple concurrent logins
Status: RESOLVED WONTFIX
Product: gnome-session
Classification: Core
Component: gnome-session
1.5.x
Other Linux
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
: 317189 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-06-01 19:17 UTC by Havoc Pennington
Modified: 2014-12-15 21:02 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Havoc Pennington 2002-06-01 19:17:02 UTC
There's no locking on the session file, right?
Comment 1 jacob berkman 2002-06-03 19:26:11 UTC
no, no locking.

there's more than this that needs to be fixed for multiple sessions to
work.

g-s-d needs to store stuff per-display / session somehow, and the
panel needs to not dump things in the default.
Comment 2 Luis Villa 2002-06-03 19:45:25 UTC
Before I mark this major/High- does anyone actually use this? Have we
ever claimed to support it? 
Comment 3 jacob berkman 2002-06-03 20:06:13 UTC
i don't think so.

it's never really worked, at least as of gnome 1.0.50
Comment 4 Havoc Pennington 2002-06-03 20:41:08 UTC
It's never really worked but it's always been a common user
complaint/issue. At least I've heard about it from customers, and e.g.
the Linux terminal server project.
Comment 5 Ryan Marsh 2002-10-04 05:44:21 UTC
+1 i'd like to vote on this one getting fixed.
Comment 6 Chris Flanigan 2002-10-04 05:49:25 UTC
I think that this is quite an important resolution that needs to be
made. The only reason that I'm using KDE on a spare machine, is
because of the ability to run it on display :0 AND :1 as the same
user. Lacking this ability makes it seem like GNOME (gnome-session)
specifically is going backwards in the usefuless category.

I, personally would use it extensively if the option were given to me,
and I'm sure many other users would agree. 
Comment 7 Mark McLoughlin 2002-10-04 07:05:28 UTC
Okay - what exactly is the problem here? There's no locking on the
session file - I get that, but thats not a huge issue.

What else prevents users from being logged in multiple times? I know
we (in Sun) do it the whole time on SunRays. There are some teething
issues, but overall it works okay ...
Comment 8 Frank Suchy 2003-12-23 16:35:20 UTC
I am logged into multiple machines under the same user id every day, 
but I can only use my favorite window manager (GNOME) on one 
machine.  I would LOVE to see this implemented.  I was very surprised 
to find out that GNOME didn't support this.
Comment 9 Ivan Noris 2004-07-14 15:03:52 UTC
I think it would be enough to first "disable" concurrent logins of the same user
to GNOME via some simple locking mechanism, and then, if requested/possible, to
allow it.

I have multiple users in my company using GNOME and the're complaining about
"missing icons from desktop", which is likely symptom of being logged more than
one time to GNOME. (We are using Sun Rays with card readers and session cards,
so it is perfectly simple for an user to log in twice: one time with and one
time without his/her session card).

Anybody ever thinking of fixing this?
Comment 10 Ivan Noris 2004-09-02 08:14:47 UTC
Well, I have put this in garnome-session script file, which runs gnome-session
at the end:

[snip]
GARNOME=/opt/BGSgnome-2.6.2
 
# Check if we are running. Filter garnome-session in process list for current
# user and exit, if garnome-session is running.
 
pgrep -u $LOGNAME $GARNOME/garnome-session
if [ $? -eq 0 ];
        then echo "Warning: garnome-session already running, exiting.";
        exit 0;
fi
 
PATH=$GARNOME/bin:/usr/sfw/bin:$PATH:/usr/openwin/bin
[rest] 

This workaround seems to work fine, testing on Solaris.

Get GARNOME's README file to check original garnome-session script.
Comment 11 Ivan Noris 2004-10-17 21:06:02 UTC
Former session-script fragment is buggy:

The pgrep line should be:

pgrep -f -u $LOGNAME $GARNOME/gnome-session

Sorry for inconvenience, I've found this only two days ago.
Wondering if anybody has some kind of better solution, i.e. not in the session
script.
Comment 12 Ghee Teo 2005-01-07 16:09:09 UTC
Ivan, the sunray environment where users login more than once and not getting
the right icons etc is because the way bonobo-activation-server has already
registered when the user first login but the services handler is on a per user
basis and not per display, hence the problem.

http://bugzilla.gnome.org/show_bug.cgi?id=94049
proposes a per display mechanism for gnome-settings-daemon and that should
resolve most of the problem you seen.

-Ghee
Comment 13 Ivan Noris 2005-01-07 16:22:12 UTC
Thanks Ghee; I'm not maintaining my GNOME build environment anymore (for couple
of months I simply don't have time for that). I'm just interested, if you have
tried the solution and what GNOME release is it for. Sun's GNOME (2.0.x) or 2.8?
HEAD (2.9)?
Many thanks!
Comment 14 Vincent Untz 2007-01-08 14:41:16 UTC
*** Bug 317189 has been marked as a duplicate of this bug. ***
Comment 15 Denis Melnikov 2007-11-22 13:35:01 UTC
(In reply to comment #9)
> I think it would be enough to first "disable" concurrent logins of the same user
> to GNOME via some simple locking mechanism, and then, if requested/possible, to
> allow it.

I believe this is the most acceptable way.
Using LTSP in Edubuntu we often faced the problem.
Comment 16 Ray Strode [halfline] 2014-12-15 21:02:20 UTC
There are many issues with logging in more than once, spawning multiple components. 

dconf won't work over nfs without being started in special mode, 
gconf before that would corrupt its own state file if two clients were mucking with it over NFS at the same time. 

There are other issues too. We're not likely to fix that any time soon if the last 12 years of inactivity on this bug are any indicator. I'm going to close this one out...

But anyone who strongly disagrees can feel free to reopen.