You are not logged in.

#1 2013-06-21 15:31:49

Virum
Member
Registered: 2013-01-22
Posts: 7

[Solved] Have issues starting a new X Server in XFCE

I'm trying to launch a WINE application in a new X Server and I get an error telling me xfce session manager already exists. How can I get around this?

>xinit env WINEPREFIX="/home/mark/.local/share/wineprefixes/SWG" wine /home/mark/.local/share/wineprefixes/SWG/drive_c/Program\ Files/Launchpad\ Enhanced/LaunchpadEnhanced.exe -- :1

xfce4-session: Another session manager is already running
xinit: connection to X server lost

waiting for X server to shut down Server terminated successfully (0). Closing log file.

Last edited by Virum (2013-06-21 17:36:20)

Offline

#2 2013-06-21 17:07:52

Virum
Member
Registered: 2013-01-22
Posts: 7

Re: [Solved] Have issues starting a new X Server in XFCE

Okay I made progress!

I installed Openbox. I guess I need to use a new WM to avoid conflicting with XFCE-session?

#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

DEFAULT_SESSION=xfce4-session
case $1 in
  lwm) exec lwm;;
  openbox) exec openbox-session;;
  xterm) exec dbus-launch xterm;;
  xfce) exec dbus-launch xfce4-session ;;
  *) exec dbus-launch  $DEFAULT_SESSION ;;
esac

I am running into one issue im trying to solve.

Im trying launch the new session AND start an application in it. So I use the command:

> xinit openbox xchat -- :10

Im using xchat for testing the command. The new session starts, Openbox loads, but my application does not. I need to start it in openbox manually.

Also I can get to openbox using CTRL+ALT+2 can I change this to CTRL+ALT+8 somehow?

Offline

#3 2013-06-21 17:14:20

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [Solved] Have issues starting a new X Server in XFCE

Setting the tty (to 8) is done with the vt parameter to the X server:

xinit openbox -- :2 vt8

This will start openbox on a second "display" on tty8.
passing xchat on that line is irrelevant when you haven't done anything with that parameter in your xinitrc.  xchat, in your example, is in $2, but you ignore $2, so of course it doesn't start.  You could do something like

[[ -n $2 ]] && $2 &
cast $1 in
    openbox) exec openbox;;
...

Or, probably more useful:

wm=$1
shift
[[ -n "$@" ]] && $@ &

case $wm in
    openbox) exec openbox-session ;;
    otherwm) exec otherwm ;;
...

Last edited by Trilby (2013-06-21 17:17:14)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-06-21 17:35:26

Virum
Member
Registered: 2013-01-22
Posts: 7

Re: [Solved] Have issues starting a new X Server in XFCE

This is perfect!

Thank you. I have a lot to learn with scripts. Much appreciated.

Offline

#5 2013-06-21 20:52:11

jeff story
Member
Registered: 2009-05-31
Posts: 238
Website

Re: [Solved] Have issues starting a new X Server in XFCE

Virum wrote:

I guess I need to use a new WM to avoid conflicting with XFCE-session?

I can do this with xfce by switching to tty8 and logging in as user, then

startxfce4 -- :2 vt8

Check out my website for info on the Arch Linux Installer

Offline

Board footer

Powered by FluxBB