Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-03-12 19:21:17

blice
Member
Registered: 2007-03-12
Posts: 3

Start 2nd X-Session

Im looking for a Plugin, which helps me, starting a Second X-Session (xdm) on vt8.  (just like kde does)
This is for the simple Reason, that me and my wife a working both on my gentoo-box. Each using own mail-accounts und icq-ids.

Its a way bad, to log me in on tty1 and "startx -- :0 vt7" , and my wife logs in on tty2 starting x with "startx -- :1 vt8". (both using xfce4 in ~/.xinitrx)

Anyone can help me, or maybe "develope" an panel-plugin (ie "start new session" "switch to ..." )

Rgds Blice

Offline

#2 2007-03-14 23:05:19

lisux
Member
Registered: 2007-03-14
Posts: 4

Re: Start 2nd X-Session

I have the same problem.
Some help on this side will be great.
Thanks!

Offline

#3 2007-03-15 00:55:54

SimonJ
Member
From: Perth
Registered: 2006-09-06
Posts: 135
Website

Re: Start 2nd X-Session

I don't know if this would help, but I would go the other way. Remove the DM completely.

My machines boot to a login prompt, then in .bash_profile, I have this:

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
    startxfce4
    exit
fi

It would be easy to set this up to look for the next tty and startx on it.

All you'd need to do is, CTRL+ALT+F<something> and log in.


Simon.                                                         (^_^)

TIP: Proofread carefully to see if you any words out.
=====================================================================

Offline

#4 2007-03-15 08:16:59

lisux
Member
Registered: 2007-03-14
Posts: 4

Re: Start 2nd X-Session

SimonJ wrote:

I don't know if this would help, but I would go the other way. Remove the DM completely.

My machines boot to a login prompt, then in .bash_profile, I have this:

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
    startxfce4
    exit
fi

It would be easy to set this up to look for the next tty and startx on it.

All you'd need to do is, CTRL+ALT+F<something> and log in.

Yes, but this is not the best option for people not used to terminals and used to windows.
Some integration between XFCE-GDM will be great.
Unless XFCE develop his own display manager ofcourse smile

Offline

#5 2007-03-18 19:05:12

lisux
Member
Registered: 2007-03-14
Posts: 4

Re: Start 2nd X-Session

Ok I have find a workaround, or a good solution for everybody using GDM as display manager.
To be able to open a new session,that is, to return to the GDM chooser window you only need to execute the application gdmflexiserver
and it will return you to the chooser.
to integrate this you only need to put a desktop entry in you ~/.local/share/applications or in /usr/share/applications (this last for all the users).
for example I have a file ~/.local/share/applications/Change User.desktop like this:

[Desktop Entry]
Encoding=UTF-8
Name=Change User
Name[es]=Cambiar Usuario
GenericName=Change UIser
Comment=Open new session with another user
Comment[es]=Abris nueva sesion con un usuario distinto
StartupNotify=true
Exec=gdmflexiserver
Icon=gnome-session-switch
Terminal=false
Type=Application
Categories=System;

And that's all hope this helps.
And I still thinks that XFCE needs some integration with display managers like gdm and kdm, I think that it is possible without having any depency with the libraries from these desktops environments, like this example shows.

Offline

Board footer

Powered by FluxBB