Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-08-2014, 03:06 PM
|
#1
|
LQ Newbie
Registered: Jul 2008
Location: São Paulo
Distribution: Slackware
Posts: 15
Rep:
|
Choosing WM with slim
Hello.
I'm using slim here, but I don't know how I should edit some files in order to choose the wm using f1.
I've read in some pages that I have to edit ~/.xsession, but Slackware's ~/.xsession looks quite different from other distros.
Here's my ~/.xsession:
Code:
#!/bin/sh
# xinitrc.xfce - modified to work around xfce4session bug
# https://bugzilla.xfce.org/show_bug.cgi?id=8841
########################################################################
## Merge in defaults and keymaps ##
########################################################################
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
/usr/bin/xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
/usr/bin/xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
/usr/bin/xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
/usr/bin/xmodmap $usermodmap
fi
########################################################################
## Start xfce Desktop Environment ##
########################################################################
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
According to https://wiki.archlinux.org/index.php...e_environments, for example, I should replace the content of the file with
Code:
DEFAULTSESSION=openbox-session
case "$1" in
xfce) exec xfce4-session ;;
kde) exec startkde ;;
cinnamon) exec gnome-session-cinnamon ;;
razor-qt) exec razor-session ;;
lxde) exec lxsession ;;
mate) exec mate-session ;;
*) exec $DEFAULTSESSION ;;
esac
However, it didn't work. I could press f1 and change the option, but it starts xfce anyway.
Thanks.
|
|
|
03-08-2014, 04:15 PM
|
#2
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Rep:
|
Quote:
Originally Posted by André0991
Code:
DEFAULTSESSION=openbox-session
case "$1" in
xfce) exec xfce4-session ;;
kde) exec startkde ;;
cinnamon) exec gnome-session-cinnamon ;;
razor-qt) exec razor-session ;;
lxde) exec lxsession ;;
mate) exec mate-session ;;
*) exec $DEFAULTSESSION ;;
esac
|
Put that into ~/.xinitrc instead of ~/.xsession.
If that doesn't work, edit the /etc/slim.conf and change the sessions line to
Code:
sessions xfce,kde,cinnamon,razor-qt,lxde,mate
Last edited by slacksam; 03-08-2014 at 04:27 PM.
|
|
|
03-12-2014, 05:16 PM
|
#3
|
LQ Newbie
Registered: Jul 2008
Location: São Paulo
Distribution: Slackware
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by slacksam
Put that into ~/.xinitrc instead of ~/.xsession.
If that doesn't work, edit the /etc/slim.conf and change the sessions line to
Code:
sessions xfce,kde,cinnamon,razor-qt,lxde,mate
|
Hello. Thanks. I could start KDE, for example, however, I was unable to use the networkmanager and to shutdown the system directly by the KDE buttons. The same occurs with xfce if I start it with the lines that are now commented (see below). I guess that this has something to do with dbus.
Here's the final part of my xinitrc:
Code:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
#DEFAULTSESSION=xfce4-session
#
#case "$1" in
# xfce) exec xfce4-session ;;
# kde) exec startkde ;;
# cinnamon) exec gnome-session-cinnamon ;;
# razor-qt) exec razor-session ;;
# lxde) exec lxsession ;;
# mate) exec mate-session ;;
# *) exec $DEFAULTSESSION ;;
#esac
May anyone explain what's the difference between starting the session with "ck-launch-session" and with "dbus-launch"? (in the if/else)
Last edited by André0991; 03-12-2014 at 05:21 PM.
|
|
|
03-15-2014, 10:29 AM
|
#4
|
LQ Newbie
Registered: Jul 2008
Location: São Paulo
Distribution: Slackware
Posts: 15
Original Poster
Rep:
|
Up.
|
|
|
03-15-2014, 12:21 PM
|
#5
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Rep:
|
AFAIK in Slackware with "ck-launch-session" you don't need to call "dbus-launch --exit-with-session", since it's called automatically.
So in your .xinitrc
Code:
exec ck-launch-session xfce4-session
should be enough to launch the Xfce session.
IMHO the "dbus-launch" command you only need on a system where ConsoleKit is not installed/running and no other session management system (i.e. systemd) is running.
|
|
|
All times are GMT -5. The time now is 02:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|