Bug 21436

Summary: XFCE 'Switch users' crashes if only 1 user logged in, so cannot login a 2nd user
Product: Mageia Reporter: Maurice Batey <maurice77>
Component: RPM PackagesAssignee: Jani Välimaa <jani.valimaa>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: marja11, ovilewade9, shybluenight
Version: 6   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: ? CVE:
Status comment:

Description Maurice Batey 2017-08-02 16:00:12 CEST
Description of problem:

After installing XFCE from 32-bit LiveDVD-Xfce .iso of 19/7/2017,
the Switch Users facility is broken, as shown below:

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Boot and login the only user so far defined

2. Select the "Switch Users" icon

3. Instead of presenting the 'greeter' to facilitate logging a 2nd user, the system locks up - first to black screen then white screen - no escape but reboot.

Also,  even with a 2nd user logged in (see workaround below), 'Switch Users' is a no-op when 2nd user is current. If 1st user is current, then it does put up the greeter screen., so can switch to 1st user.

Workaround to get 2nd user logged in:

(1) Ensure 2nd user's ~/.xinitrc has the line:

           exec startxfce4

(2) In user 1 session, use Ctl+Alt+F3 to get into tty3, there:
    Login 2nd user
    startx -- :2

 - which then starts 2nd user in Xfce.
Comment 1 Chris B 2017-08-02 16:48:42 CEST
I can't reproduce it.
On a M6 i586 system with 2 users, I can switch between the 2 users, using the icon in the Menu. I see the LightDM greeter, no workaround necessary. And can login, either with the second user or the first user.
On a M6 64b system with 1 user, if I click on the icon, I see the LightDM greeter, and can login again with the user.

CC: (none) => shybluenight

Comment 2 Maurice Batey 2017-08-02 18:22:11 CEST
N.B. cat /etc/sysconfig/desktop shows displaymanager = LightDM
Comment 3 Marja Van Waes 2017-08-02 22:32:17 CEST
Assigning to the XFCE maintainer to decide what to do with this report.

CC: (none) => marja11
Assignee: bugsquad => jani.valimaa

Comment 4 Chris B 2017-08-03 10:33:13 CEST
I've made some more tests. I have a default Xfce M6 installation. No other DE, no other displaymanager installed, no kde5/plasma applications.

With or without Xscreensaver running: switching user(s) work.
With or without autologin enabled: switching user(s) work.

I don't have and don't use a ~/.xinitrc. Why would I?

Starting the system in non graphical mode:

* The correct way to start the session is: systemctl start lightdm.service
This works with or without autologin, switching user(s) work.

* When I login  and do 'startxfce4', xfce is called directly, and I'm landing on the DE. lightdm is not started, logout using the menu does nothing, switching user does nothing, shutdown works. That's what I expected because you can start xfce without a display manager. But for switching the user you need a DM running, the command is 'dm-tool switch-to-greeter'.

More I don't know.
Comment 5 Maurice Batey 2017-08-03 12:16:23 CEST
>  I don't have and don't use a ~/.xinitrc. Why would I?

  It's the only way I could find to login a 2nd user

Starting the system in non graphical mode:

* The correct way to start the session is: systemctl start lightdm.service
This works with or without autologin, switching user(s) work.

  I'll give that a try, but to login a 2nd user I think Switch User should do that.

> * When I login  and do 'startxfce4'...

When I login the first user I don't have to do that!


> But for switching the user you need a DM running, the command is 'dm-tool switch-to-greeter'.

  I did try that, but all it seemed to do was start 'Switch Users', with the same result as I described above!
Comment 6 Chris B 2017-08-03 12:23:33 CEST
What I tested was a forced non graphical login (starting the system in init 3), of course I don't have to type anything with a default xfce & lightdm in installation.
Comment 7 Chris B 2017-08-03 12:39:56 CEST
Maurice, is this the same system you reported on the QA- mailinglist?
With KDE apps & tasks running in the background, an underpowered netbook which had trouble using SDDM, and which is using fbdev?
Comment 8 Maurice Batey 2017-08-03 12:45:12 CEST
Yes.
Comment 9 Chris B 2017-08-03 12:59:34 CEST
Then I don't know, could be a hardware limitation or a KDE service/task that is blocking the switch user function.
Someone else might have an idea what the cause could be.

But if the logout of the 1. user and login with the 2. user works (instead of switch), you could just disable the switch thing, right click on the menu item (default it is whisker menu), properties -> tab Commands.
Comment 10 Maurice Batey 2017-08-03 13:38:40 CEST
> ... if the logout of the 1. user and login with the 2. user works

That's not what my problem is, though.
  The problem is that - having initially logged in user1 - I can't then  use 'Switch Users' to login user2...


> .. you could just disable the switch thing, right click on the menu item (default it is whisker menu), properties -> tab Commands.

   I don't understand that at all, sorry!
Comment 11 Chris B 2017-08-03 13:59:24 CEST
Well, if you insist of having two fully parallel instances of users running...

But if you just want to logout a user, and start/login with another user, then it is the 'log out' icon, in the menu.

Hide/disable the 'switch user' icon: in your panel, right click on the Menu icon, click on 'Properties', select the "Commands" tab, here you can disable it.
Comment 12 Maurice Batey 2017-08-03 14:03:12 CEST
Interesting info here:

   http://goodies.xfce.org/projects/panel-plugins/xfswitch-plugin

"Xfswitch-plugin is a user switching plugin for the Xfce4 Panel. It allows you to leave the current session opened and open a new session with another user. At the moment it relies on GDM, but other display managers will be supported in the future."
Comment 13 Maurice Batey 2017-08-03 14:11:41 CEST
 > ...if you insist of having two fully parallel instances of users running...

But that's what we do when away from base, sharing either netbook or laptop!
    I use my login for my things, and she uses hers for hers, just flip-flopping from one to the other with Ctl+Alt+Fn as needed.

Why not?!
Comment 14 Chris B 2017-08-03 14:14:24 CEST
Nothing wrong with it. Im just trying to help suggesting another option.
Comment 15 Maurice Batey 2018-06-20 12:17:13 CEST
I am very happy to say that a 702-package update of my 32-bit Xfce (+Kmail) Mageia-6 on Samsung NC110 netbook appears to have now cleared all my Xfce problems, so unless others' problems have not been similarly cleared this bug report can be closed.
Comment 16 Maurice Batey 2019-02-21 18:25:41 CET
Closing as problem solved as above.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 17 jack wisdon 2020-06-06 18:53:57 CEST Comment hidden (spam)

CC: (none) => ovilewade9