Difference between revisions of "SLiM Configuration"

no edit summary
imported>Verityproductions
imported>Verityproductions
Line 99: Line 99:
'''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:
'''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:




Line 108: 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"
   
   
'''DEFAULTSESSION=xfce4-session'''
   
   
  case "$1" in
  ## Where the default Home folders have not already been created, generate them
      '''<font color="green">xfce</font color>''') exec xfce4-session ;;
      '''<font color="green">gnome3</font color>''') exec gnome-session ;;
if [ -x /usr/bin/xdg-user-dirs-update ]; then
      '''<font color="green">kde</font color>''') exec startkde ;;
    /usr/bin/xdg-user-dirs-update
      '''<font color="green">cinnamon</font color>''') exec gnome-session-cinnamon ;;
fi
      '''<font color="green">razor-qt</font color>''') exec razor-session ;;
      '''<font color="green">openbox</font color>''') exec openbox-session ;;
## Ensure that obmenu-generator (a pipe menu) is set to the user.
      '''<font color="green">lxde</font color>''') exec lxsession ;;
## Needs only to be run once, so last sed command hashes the sed
      '''<font color="green">mate</font color>''') exec mate-session ;;
## commands!
      *) exec $DEFAULTSESSION ;;
  esac
sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/schema.pl -i
 
sed 's/_user_/'$(whoami)'/' ~/.config/obmenu-generator/config.pl -i
   
exec $1




Line 136: Line 170:




{{tip|The desktop environments shown will be listed in both the order and manner they were listed in the SLiM configuration file.}}
{{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 - and consequently enabled by editing the above files - then they can be cycled and selected by pressing the '''F1''' key on the SLiM login screen.
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" />