You are not logged in.

#1 2012-06-27 11:19:36

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

startx from tmux - problem with ck sessions

I am starting my X from within a tmux session:

exec tmux start-server \; \
          new-session -d -s xorg startx \; \

My .xinitrc looks as follows:

exec ck-launch-session dbus-launch xmonad

But when I check my running ck-sessions, is says it's not active!

$ ck-list-sessions
Session2:
	unix-user = '1000'
	realname = 'Crazy Person'
	seat = 'Seat2'
	session-type = ''
	active = FALSE
	x11-display = ':0'
	x11-display-device = '/dev/tty2'
	display-device = '/dev/pts/0'
	remote-host-name = ''
	is-local = FALSE
	on-since = '2012-06-27T10:40:43.409347Z'
	login-session-id = '1

Could that be because of me starting it from tmux? Can I somehow fix this? I really need consolekit.


EDIT: I just did everything by hand: login to TTY1, run tmux, startx from within tmux, and the result is the same: the session with the x11-display is shown as is-local = FALSE.

Last edited by Stalafin (2012-06-27 12:39:52)

Offline

#2 2012-06-28 08:31:04

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: startx from tmux - problem with ck sessions

Stalafin wrote:

Could that be because of me starting it from tmux?

Does it register correctly when launched without tmux?

Offline

#3 2012-07-11 13:11:13

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: startx from tmux - problem with ck sessions

Šaran wrote:
Stalafin wrote:

Could that be because of me starting it from tmux?

Does it register correctly when launched without tmux?

Yes, it does launch correctly when starting without tmux.

What I have noticed:

  • If I log into TTY1 and $ startx, $ ck-list-session shows my X-related session as both active = TRUE and is-local = TRUE.

  • If I log into TTY1, then $ tmux, and in there $ startx, the same as above applies. I can also detach the tmux session, exit TTY1, and ck-list-session is still active = TRUE and is-local = TRUE for my X-session.

  • However, if I just log into TTY1, and have the following in my .zlogin

    #!/usr/bin/env zsh
    exec tmux start-server \; \
        new-session -d -s xorg startx \; \
        set-option -t xorg remain-on-exit off

    then $ ck-list-sessions shows my X-sessions as active = FALSE and is-local = FALSE.

But I want to launch my X server via my tmux somehow.

Last edited by Stalafin (2012-07-11 13:31:23)

Offline

Board footer

Powered by FluxBB