Difference between revisions of "SLiM Configuration"
Views
Actions
Namespaces
Variants
Tools
no edit summary
imported>Verityproductions |
imported>Verityproductions |
||
(One intermediate revision by the same user not shown) | |||
Line 28: | Line 28: | ||
For example, if you wish to edit the file using Geany (provided with the Openbox flavour) then enter: | For example, if you wish to edit the file using ''Geany'' (provided with the Openbox flavour) then enter: | ||
gksu geany /etc/slim.conf | gksu geany /etc/slim.conf | ||
Otherwise, if you wish to edit the file using Gedit (provided with the XFCE flavour) then enter: | Otherwise, if you wish to edit the file using ''Gedit'' (provided with the XFCE flavour) then enter: | ||
sudo gedit /etc/slim.conf | sudo gedit /etc/slim.conf | ||
Line 69: | Line 69: | ||
==Open the X-Windows Initialisation File== | ==Open the X-Windows Initialisation File== | ||
The .xinitrc is responsible for actually starting your installed desktop environment(s) | {{tip|The ''.xinitrc'' file is already owned by you, so there is no need to use the 'sudo' or 'gksu' commands to edit it.}} | ||
The .xinitrc is responsible for actually starting your installed desktop environment(s). You will need to first open your terminal in order to edit the '''X-Windows initialisation file'''. The syntax of the command to do this is: | |||
sudo [text editor] ~/.xinitrc | sudo [text editor] ~/.xinitrc | ||
'''Don't forget the dot'''. For example, if you wish to edit the file | '''Don't forget the dot'''. For example, if you wish to edit the file using ''Geany'', then enter: | ||
geany ~/.xinitrc | |||
Otherwise you could use the ''Gedit'' text editor instead, by entering the command: | |||
gedit ~/.xinitrc | |||
==Ensure the X-Windows Initialisation File Runs Installed Environments== | |||
{{warning|SLiM no longer seems to support a default session. It will therefore be necessary to select what desktop environment or window manager you wish to use by first pressing the '''<F1>''' key, prior to entering your username and password.}} | |||
Once the .xinitrc configuration file has been opened, it will be necessary to ensure that the following line is present <u>at the very end of the configuration file</u>: | |||
exec $1 | |||
'''Users who had a previous version of SLiM installed''' must completely replace both the previous '''case "$1"''' and '''DEFAULTSESSION=''' commands listed below with the '''exec $1''' command. For example, '''users who installed Manjaro Openbox 0.8.7.1 or earlier''' should first find the following section: | |||
DEFAULTSESSION=openbox-session | |||
case "$1" in | |||
openbox) exec openbox-session ;; | |||
xfce) exec xfce4-session ;; | |||
gnome3) exec gnome-session ;; | |||
kde) exec startkde ;; | |||
cinnamon) exec gnome-session-cinnamon ;; | |||
razor-qt) exec razor-session ;; | |||
lxde) exec lxsession ;; | |||
mate) exec mate-session ;; | |||
*) exec $DEFAULTSESSION ;; | |||
esac | |||
And make the necessary amendment so that it now looks like this: | |||
exec $1 | |||
To clarify for newer users, the entire ''.xinitrc'' file should now look like this: | |||
#!/bin/sh | #!/bin/sh | ||
Line 101: | Line 130: | ||
# Executed by startx (run your window manager from here) | # Executed by startx (run your window manager from here) | ||
# | # | ||
## Ensure that the D-Bus Communication System is running properly to fix | |||
## File management, authentication, and other essential system processes | |||
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then | |||
eval "$(dbus-launch --sh-syntax --exit-with-session)" | |||
fi | |||
## Ensure that GTK themes are applied uniformly in the Desktop Environment | |||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0" | export GTK2_RC_FILES="$HOME/.gtkrc-2.0" | ||
## Where the default Home folders have not already been created, generate them | |||
if [ -x /usr/bin/xdg-user-dirs-update ]; then | |||
/usr/bin/xdg-user-dirs-update | |||
fi | |||
## Ensure that obmenu-generator (a pipe menu) is set to the user. | |||
## Needs only to be run once, so last sed command hashes the sed | |||
## commands! | |||
sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/schema.pl -i | |||
sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/config.pl -i | |||
exec $1 | |||
'' | |||
'' | |||
Now reboot the system for the changes to take effect. | Once satisfied that the ''exec $1'' command is present and/or has replaced the old ''case "$1'' and ''DEFAULTSESSION='' commands, save and close the file. Now reboot the system for the changes to take effect. | ||
Line 147: | Line 170: | ||
{{ | {{Note|Again, there is no longer a 'default session', so you will have to manually pick the installed desktop you wish. This includes even where only Openbox has been installed, as it is possible to use this window manager with the KDE desktop environment.}} | ||
Where two or more desktop environments have be installed | Where two or more desktop environments have be installed (or at least just Openbox), then they can be cycled and selected by pressing the '''F1''' key on the SLiM login screen. | ||
<br clear="all" /> | <br clear="all" /> | ||