LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Starting a new X session from within Xfce4 (https://www.linuxquestions.org/questions/slackware-14/starting-a-new-x-session-from-within-xfce4-468930/)

cwwilson721 07-29-2006 02:33 PM

Starting a new X session from within Xfce4
 
In KDE, it's easy, just 'logout', 'Switch Users'

But how to do this in Xfce?

EDIT*** Running init 4.

In other words, how do I spawn a new X11 session?

Mr_C 07-29-2006 03:47 PM

Well this works depending on your default in ~/.xinitrc
Code:

startx -- :1

cwwilson721 07-29-2006 03:49 PM

Quote:

Originally Posted by Mr_C
Well this works depending on your default in ~/.xinitrc
Code:

startx -- :1

Doh!!!

I feel like such a Homer...

cwwilson721 07-29-2006 03:51 PM

Sorry, gives me the 'console/screen/descriptor' type error.
Code:

bash-3.1$ startx -- :9
xauth:  creating new authority file /home/carl/.serverauth.9876
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/toaster:9
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: Linux 2.4.32 i686 [ELF]
Current Operating System: Linux toaster 2.6.16.20 #5 PREEMPT Mon Jun 26 00:50:32 CDT 2006 i686
Build Date: 02 May 2006
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.9.log", Time: Sat Jul 29 15:50:33 2006
(==) Using config file: "/etc/X11/xorg.conf"

(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
Synaptics DeviceInit called
SynapticsCtrl called.
Synaptics DeviceOn called
Synaptics DeviceOff called

waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.


Couldnt get a file descriptor referring to the console

I'm running init 4. init 3 would work, but already know to do that...

Randux 07-29-2006 04:45 PM

ctrl-alt-backspace (all together, now!)

then startx

Works for me, but I use runlevel 3...

cwwilson721 07-29-2006 04:46 PM

No. I need to keep the current session running....

Comparable to 'Switch Users' in KDE.

shilo 07-29-2006 06:24 PM

Code:

gdmflexiserver
This will work, if you have GDM. Don't recall if Slack still includes it.

cwwilson721 07-29-2006 06:42 PM

Nope. Ain't not got it.

Mr_C 07-29-2006 07:41 PM

Actually I don't know how to get a switch users like whats avaliable in init 4. I use init 3 cause 4 disables my direct rendering for some insane reason.

That said I usually do the startx -- :1 thingeee and it maps like this

normal X = CTRL+ALT+F7
:1 = CTRL+ALT+F8
:2 = CTRL+ALT+F9
etc

cwwilson721 07-29-2006 07:45 PM

Here's what I get:
Code:

bash-3.1$ startx -- :1
xauth:  creating new authority file /home/carl/.serverauth.14124

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/toaster:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 6.9.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 6.9
Build Operating System: Linux 2.4.32 i686 [ELF]
Current Operating System: Linux toaster 2.6.16.20 #5 PREEMPT Mon Jun 26 00:50:32 CDT 2006 i686
Build Date: 02 May 2006
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sat Jul 29 19:42:48 2006
(==) Using config file: "/etc/X11/xorg.conf"
(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
Synaptics DeviceInit called
SynapticsCtrl called.
Synaptics DeviceOn called
Synaptics DeviceOff called

waiting for X server to shut down FreeFontPath: FPE "/usr/X11R6/lib/X11/fonts/misc/" refcount is 2, should be 1; fixing.


Couldnt get a file descriptor referring to the console
bash-3.1$

So there is nothing like the 'Switch User' function in KDE?

If you don't know what I'm talking about, try it first.

shilo 07-29-2006 07:55 PM

Code:

kdmctl reserve
Since you are (guessing here) using KDM as your login manager, this should work.

cwwilson721 07-29-2006 07:59 PM

Cool. That did it. Thanks Shilo...

Randux 07-30-2006 10:27 AM

Quote:

Originally Posted by cwwilson721
No. I need to keep the current session running....

Comparable to 'Switch Users' in KDE.

Sorry man, I didn't understand what you wanted. I didn't know such a thing was possible.

cwwilson721 07-30-2006 10:32 AM

Quote:

Originally Posted by shilo
Code:

kdmctl reserve
Since you are (guessing here) using KDM as your login manager, this should work.

Shilo's thing worked like a charm. Just what I was looking for. Now to put it in a script, and make a cute icon for it...lol

shilo 07-30-2006 02:29 PM

I haven't bothered to test this, but it should work for WMs that follow the FDO specs. This will put an entry in the menu for you.

Create a file, /usr/share/applications/kdmctl-reserve.desktop :
Code:

[Desktop Entry]
Encoding=UTF-8
Name=New Login
GenericName=New Login
Comment=Log in as another user without logging out
Exec=kdmctl reserve
Icon=/opt/kde/share/icons/crystalsvg/128x128/apps/kdmconfig.png
Terminal=false
Type=Application
Categories=Application;System;

You may have to logout and login again for this to work.

You can use this as a base. Change the icon to anything you like. There are likely already some .desktop files in /usr/share/applications that will give you an idea how the files should be structured.

One thing to note, the user switching is not dependant on the WM, it is dependant on the login manager. The previous solutions offered in this thread assumed no login manager. "kdmctl reserve" is used when KDM is being used as the login manager. "gdmflexiserver" is used when GDM is the login manager. Haven't bothered to look up the command for when you use XDM as the login manager.


All times are GMT -5. The time now is 09:00 PM.