You are not logged in.
Starting a functional xsession from xinit in the form xinit startxfce4 is quite difficult.
I'm unable to automatically start pulse-session, console-kit and dbus-session.
Adding the following to xinitrc (system)
pulseaudio -D &
ck-launch-session &
dbus-launch &
does not make any difference. I would love to not have gdm/kdm not running as I use mainly xfce. Is there a script where I can pass on the windowmanager executable (without the whole path) and get a functional xsession.
Thanks in advance.
Offline
Add "exec ck-launch-session startxfce4" to ~/.xinitrc.
Offline
The only problem is then I cannot change the window manager session. I use fluxbox, openbox, wmii etc as well. I would love to be able to pass on the windowmanager variable to the xinit/startx. With ck-launch-session I still get dbus errors esp. if launching beagle-search --icon. Hence I need pulseaudio, ck-launch-session and dbus-launch to start with the X session.
Offline
I haven't tested any of this, but it may work:
https://bbs.archlinux.org/viewtopic.php … 37#p698737
Search the wiki and forums or modify that script to use
exec ck-launch-session openbox
and so on.
Last edited by karol (2010-09-25 09:51:06)
Offline
The problem is getting all the 3 things (pulse, consolekit and dbus session) to launch with the xinitrc. It would save me having to edit the startup file of every window manager I use. The launch command should have two words at the most (something like xinit startfluxbox or xinit awesome).
I find it strange that linux, in an effort to be too GUI friendly is moving further and further from commandline. The reason I like to start X from command line is that for gaming I get good performance and avoid loading pointless gnome or kde libraries.
Offline
Bbbbbut you can create aliases and functions:
alias just_start="many many many commands"
Seems the opposite of https://bbs.archlinux.org/viewtopic.php?id=105482 :-)
And I think you can do it from the .xinitrc if you like: https://bbs.archlinux.org/viewtopic.php … 63#p698363
Last edited by karol (2010-09-25 10:35:25)
Offline
Solved it by 2 methods:
1. created an executable called /usr/bin/x
#!/bin/sh
xinit /usr/bin/dbus-launch /usr/bin/ck-launch-session $1
and made it executable. Running x startfluxbox (or any other wm/de) gets a fully useful xsession
2. Started using slim which is lighter and you can change session by F1
Changed the login command variable to
login_cmd xinit /usr/bin/dbus-launch /usr/bin/ck-launchsession %session
I must admit getting it from command line is much better. Pulseaudio is working (i guess consolekit/dbus-session were needed)
I guess we could modify xinitrc or xinitrc.d/ to add a script to do just this (as a thought)
Cheers and thanks for your help.
Offline
Small improvement in the script, now if I just type x I get enlightenment. If I want anything else I just append the wm
#!/bin/sh
$1
if [ $1 ]
then
xinit /usr/bin/dbus-launch /usr/bin/ck-launch-session $1
else
xinit /usr/bin/dbus-launch /usr/bin/ck-launch-session enlightenment_start
fi
Offline