[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Open new session with same user (in GDM)



> Le 21/02/2013 00:32, Mark Allums a écrit :
> >> From: Kent West [mailto:westk@acu.edu]
> >> On 02/20/2013 04:07 PM, Alois Mahdal wrote:
> >>> Hello to all!
> >>>
> >>> How do I create two same-user sessions from GDM?
> >>>
> >>> Say I'm logged in in Xfce (which I normally use, therefore have
> >>> many windows / apps open) and want to quickly report a bug. But
> >>> before I do that, I want to check if the same happens in GNOME.
> >>>
> >>> xfswitch-plugin ("User switching" in Panel item menu), gets me
> >>> to the GDM, but even if I choose my username and "Gnome classic"
> >>> session, typing my password only brings me to the old Xfce4
> >>> session (i.e. the "session" option in GDM is ignored).
> >>>
> >>> Thanks,
> >>> aL.
> >>>
> >>> P.S.: While typing this, I realized that 90% of these cases can
> >>> be solved by creating a new temporary user, which is way more
> >>> correct way of bug reporting.  However, in some cases (hard to
> >>> reproduce bugs, missing privileges to create user...) that might
> >>> not be the solution.
> >>>
> >>   From GDM? I don't know.
> >>
> >> But you can shell out (via Ctrl-Alt-F1). login there, and start a new X
> >> session with something like
> >>
> >> # startx /usr/bin/gnome-session -- :2
> >>
> >> It's been so long that I don't remember if this is the exact correct
> >> syntax, but I believe it is. No guarantees as to what might happen
> >> though with two different DEs reading/writing to the same user account
> >> space.
> >>
> > The latter would mostly work, except possibly with something leading to
> some
> > obscure race condition, solvable with proper use of lock files.  Open files
> > being edited may come out with competing versions, but last written wins
> if
> > the thing is properly multi-instance, like gedit.  If single instance only,


I realized I used a bad example here.  Gedit just opens a new tab.  Principle seems sound, though I haven't had a chance to try it myself, yet.


> > you would get errors and bailouts trying to start a second instance (of a
> > gtk or Qt app, forex).
> >
> > Just a little guessing.
> >
> > As far as starting a new session at GDM, wouldn't it be like starting any
> > other session with GDM?  Just choose your window manager+DE with the
> > pulldown menu?  What am I missing?
> >
> 
> Isn't there one only dbus daemon per user, daemon on which gconf is
> based, which would prevent several sessions by same user ?

How about running two different DMs? Isn't that what that's for?  Can't have competing DMs like KDM, GDM, and LightDM.  But why shouldn't LXDE and e17 run at the same time?  

If no competing sessions can exist, then that goes against the spirit of Unix.  Someone should create a DM that supports multisession!  Fix dbus, and all that.  Even if there is little or no demand for such a thing.  It's the principle of the thing.  (I can imagine one session spread across many separate, discrete computers, using some sort of ssh hydra  You might could do something with Wayland instead of X.org.  But that's crazy talk.  Imagine crashing X on six computers at once!)

But seriously, I just tried User Switching under MATE, and got 'Unable to start new display GDbus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.Display
Manager was not provided by any .service files'.  So something's wrong with my LightDM, something's wrong with MATE (or *my* MATE), or something's wrong with my Gnome 3, which is also installed.  Or something.  I'll try something else later.  

Would starting a second X session do any good at all, as Kent suggested?  There would still be only one DBus?

Good luck!


 


Reply to: