You are not logged in.

#1 2009-05-21 15:07:43

chrispoole
Member
Registered: 2008-12-30
Posts: 121

autostart screen session after running startx?

I have the following in my .zshrc:

if [[ $STY = '' ]] then screen -d -R chris; fi

This works great when using GDM: I log in, and upon opening a terminal, I have my screen session. I can then open another terminal and the screen session is transferred across, detached in the previous terminal window.

If I don't use GDM, screen starts when I log in (in framebuffer mode?), as I'd expect. But then when I type 'startx' and open a terminal in GNOME, my screen session isn't transferred.

Is there a way to get screen to start in gnome-terminal, after running 'startx'?

Offline

#2 2009-05-22 06:59:11

sjovan
Member
Registered: 2009-04-24
Posts: 23

Re: autostart screen session after running startx?

if you got a screen running with the same user screen -d -r should do the trick in gnome-terminal.

Offline

#3 2009-05-22 09:29:40

chrispoole
Member
Registered: 2008-12-30
Posts: 121

Re: autostart screen session after running startx?

It does, I'd just rather not type it.

Using GDM as my login method, gnome-terminal automatically grabs the screen session (because it's not already started?).

Using startx method, gnome-terminal doesn't get the screen session.

I just wonder if there's a way to get the first outcome with the second method?

Offline

#4 2009-05-22 10:12:00

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: autostart screen session after running startx?

doesn't gnome have an autostart? Couldn't you write a small script to open a terminal window and attatch to a screen session after gnome boots. I assume your using gnome.

Offline

Board footer

Powered by FluxBB