Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] xfce4 tty7 session started twice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Mon Mar 12, 2012 4:51 pm    Post subject: [SOLVED] xfce4 tty7 session started twice Reply with quote

I'm using "slim" on both computers and it seems to me they both have the same configuration but on one of them "ck-list-sessions" is showing that tty7 is started twice.
Code:
 ck-list-sessions
Session4:
   unix-user = '1001'
   realname = '(null)'
   seat = 'Seat5'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2012-03-12T14:37:26.739321Z'
   login-session-id = '23'
Session7:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat6'
   session-type = ''
   active = FALSE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/ssh'
   remote-host-name = '192.168.141.8'
   is-local = FALSE
   on-since = '2012-03-12T15:29:14.176895Z'
   login-session-id = '24'
Session5:
   unix-user = '1001'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2012-03-12T14:37:26.776626Z'
   login-session-id = '23'
Session6:
   unix-user = '1001'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2012-03-12T14:37:26.910892Z'
   login-session-id = '23'


So on the Session6 "active = FALSE" and some buttons on log-out "shut down etc." are grayed out.

My settings:
Code:
cat /etc/conf.d/xdm
...
DISPLAYMANAGER="slim"

Code:
cat /etc/env.d/90xsession
XSESSION="startxfce4"
#XSESSION="Xfce4"

Code:
cat /etc/X11/Sessions/Xfce4
startxfce4
#exec ck-launch-session startxfce4

Code:
thelma $ cat .xinitrc
exec ck-launch-session startxfce4

I have the same setting on my other amd that is using slim that is working correctly tty7 session is showing only once (active one).

Since I'm suing "slim" I have in: /etc/pam.d/system-login
session optional pam_ck_connector.so (without "nox11")

Why the second tty7 session starts when I login?
_________________
#Thelma


Last edited by Joseph_sys on Tue Mar 13, 2012 12:42 am; edited 1 time in total
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2571
Location: Edmonton, AB

PostPosted: Tue Mar 13, 2012 12:41 am    Post subject: Reply with quote

Solved!
It turned out in /etc/slim.conf I had:
Code:
...
 login_cmd           exec /bin/bash -login ~/.xinitrc %session
#login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session
...


and it should be other way around:
Code:
...
#login_cmd           exec /bin/bash -login ~/.xinitrc %session
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session
...

_________________
#Thelma
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum