Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-08-01 11:19:10

lesebas
Member
Registered: 2013-08-01
Posts: 5

starting xfce session from lxdm properly (systemd-logind support)

Hello,

I post this message as a copy of the original one on archlinux forum... hopping someone could help me, or if someone could check if he has the same problem...

I have fresh installed archlinux with xfce (4.10) session and lxdm as display manager. Archlinux is installed on an external ssd conected to my profossional laptop which have an internal drive with two ntfs partition. This laptop is multi-user used.
My problems started when I've tried to mount the ntfs partition from thunar, I was receiving this message :

Failed to mount << Volume 163GB >>
Not authorized to perform operation.

So I have installed gnome-polkit and on the first attemp I was thinking that evreything was working well. I received an window with the prompt to enter my password and the partition was well mount.
The problem is that if I open a second xfce session with a second user, if this user try to mount the partition from no thunar there's no window... and if I come back to the first opened session, the prompt window is there, waiting for the password!
What is very strange, even if there is more than one xfce session opened, the commande loginctl return only one session (example from the accont "stephanie" with xfce session opened after "sebastien"):

[stephanie@Vulpus ~]$ loginctl
   SESSION        UID USER             SEAT            
         1       1000 sebastien        seat0           
         
1 sessions listed.
[stephanie@Vulpus ~]$

same thing as root :

[root@Vulpus stephanie]# loginctl
   SESSION        UID USER             SEAT            
         1       1000 sebastien        seat0           

1 sessions listed.
[root@Vulpus stephanie]# 

By the way, if I open some sessions in a standard consoles I'm able to see these sessions :

[root@Vulpus sebastien]# exit
exit
[sebastien@Vulpus ~]$ loginctl
   SESSION        UID USER             SEAT            
         1       1001 stephanie        seat0           
         2       1000 sebastien        seat0           
         3       1001 stephanie        seat0           

3 sessions listed.
[sebastien@Vulpus ~]$

So here is my question, how can i launch properly the xfce session from logind point of view?

Last edited by lesebas (2013-08-01 11:31:00)

Offline

#2 2013-08-03 20:11:12

Chazza
Member
From: United Kingdom
Registered: 2013-07-31
Posts: 18

Re: starting xfce session from lxdm properly (systemd-logind support)

lesebas wrote:

Hello,

I post this message as a copy of the original one on archlinux forum... hopping someone could help me, or if someone could check if he has the same problem...

I have fresh installed archlinux with xfce (4.10) session and lxdm as display manager. Archlinux is installed on an external ssd conected to my profossional laptop which have an internal drive with two ntfs partition. This laptop is multi-user used.
My problems started when I've tried to mount the ntfs partition from thunar, I was receiving this message :

Failed to mount << Volume 163GB >>
Not authorized to perform operation.

So I have installed gnome-polkit and on the first attemp I was thinking that evreything was working well. I received an window with the prompt to enter my password and the partition was well mount.
The problem is that if I open a second xfce session with a second user, if this user try to mount the partition from no thunar there's no window... and if I come back to the first opened session, the prompt window is there, waiting for the password!
What is very strange, even if there is more than one xfce session opened, the commande loginctl return only one session (example from the accont "stephanie" with xfce session opened after "sebastien"):

[stephanie@Vulpus ~]$ loginctl
   SESSION        UID USER             SEAT            
         1       1000 sebastien        seat0           
         
1 sessions listed.
[stephanie@Vulpus ~]$

same thing as root :

[root@Vulpus stephanie]# loginctl
   SESSION        UID USER             SEAT            
         1       1000 sebastien        seat0           

1 sessions listed.
[root@Vulpus stephanie]# 

By the way, if I open some sessions in a standard consoles I'm able to see these sessions :

[root@Vulpus sebastien]# exit
exit
[sebastien@Vulpus ~]$ loginctl
   SESSION        UID USER             SEAT            
         1       1001 stephanie        seat0           
         2       1000 sebastien        seat0           
         3       1001 stephanie        seat0           

3 sessions listed.
[sebastien@Vulpus ~]$

So here is my question, how can i launch properly the xfce session from logind point of view?

lxdm by default does not kill processes when logged out! This might be the cause of your problems.

To modify this behaviour as root edit /etc/lxdm/PostLogout and add these lines

#!/bin/sh

# Terminate current user session
/usr/bin/loginctl terminate-session $XDG_SESSION_ID

# Restart lxdm
/usr/bin/systemctl restart lxdm.service

Offline

#3 2013-08-06 13:23:47

lesebas
Member
Registered: 2013-08-01
Posts: 5

Re: starting xfce session from lxdm properly (systemd-logind support)

Hello, this solution is worst than better, as there is only session saw even there are several user connected, if you close one session it kills all other ones!

Offline

#4 2013-08-06 13:37:54

lesebas
Member
Registered: 2013-08-01
Posts: 5

Re: starting xfce session from lxdm properly (systemd-logind support)

What is very strange is that if i stop lxdm and log one user from a tty, for the first one startxfce4 works well, but for the second the system complain that X server is already running... How can I start multi-user xfce from the console?

[edit]OK I've got it : I add exec startxfce4 in .xinitrc and startx for each user from tty works well. In that case I can see all sessions with loginctl... so I think the problem come from lxdm.

Last edited by lesebas (2013-08-06 14:00:40)

Offline

#5 2013-08-06 14:05:35

ToZ
Moderator
From: Toronto, Canada
Registered: 2011-06-02
Posts: 1,385

Re: starting xfce session from lxdm properly (systemd-logind support)

lesebas wrote:

How can I start multi-user xfce from the console?

See here: https://wiki.archlinux.org/index.php/LX … hing_users

Last edited by ToZ (2013-08-06 14:05:51)

Online

#6 2013-08-10 13:22:27

lesebas
Member
Registered: 2013-08-01
Posts: 5

Re: starting xfce session from lxdm properly (systemd-logind support)

Ok but it doesn't solve my problem of logind.

I've found this post related to the problem with lxdm and systemd:

users of systemd and lxdm or lightdm please read and comment

Offline

#7 2013-08-13 21:02:33

lesebas
Member
Registered: 2013-08-01
Posts: 5

Re: starting xfce session from lxdm properly (systemd-logind support)

Hello I've tried lightm... loginctl works fine, it seems the problem comes from lxdm. Does anyone can confirm the bug?

Last edited by lesebas (2013-08-13 21:02:56)

Offline

Board footer

Powered by FluxBB