You are not logged in.
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
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 ;;
esacI 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 -- :10Im 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
Setting the tty (to 8) is done with the vt parameter to the X server:
xinit openbox -- :2 vt8This 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
This is perfect!
Thank you. I have a lot to learn with scripts. Much appreciated.
Offline
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 vt8Check out my website for info on the Arch Linux Installer
Offline