Difference between revisions of "SLiM Configuration"

no edit summary
imported>Verityproductions
imported>Verityproductions
Line 81: Line 81:
* match those name(s) with the command(s) necessary to actually start the desktop environment(s)
* match those name(s) with the command(s) necessary to actually start the desktop environment(s)


The key point to keep in mind is that the name(s) of the desktop(s) listed in the SLiM configuration file must be matched with those listed in the X-Windows Initialisation file. As such, it is therefore '''<u>vitally important</u>''' that the name of any given desktop environment is listed '''EXACTLY''' the same way in both files. This includes the use of captial and lower-case letters. Should there by any difference at all, then there will not be a match, and your chosen desktop environment will not be started.
The key point to keep in mind is that the name(s) of the desktop(s) listed in the SLiM configuration file must be matched with those listed in the X-Windows Initialisation file. As such, it is therefore '''<u>vitally important</u>''' that the name of any given desktop environment is listed '''EXACTLY''' the same way in both files. This includes the use of captial and lower-case letters. Should there by any difference at all, then there will not be a match, and your chosen desktop environment will not be started. The names and commands themselves must be added after the '''DEFAULTSESSION=''' command. All the names used in the SLiM configuration file have been listed exactly the same way here, and have been '''<font color="green">colured in green</font color>''' for illustrative purposes.
 
The names and commands themselves are added after the '''DEFAULTSESSION=''' command. In the example below, notice that each desktop name is followed by the appropriate command to actually start it (e.g. the name 'kde' is followed by the command 'startkde'). All the names used in the SLiM configuration file have been listed exactly the same way here, and have been '''<font color="green">colured in green</font color>''' for illustrative purposes.


  '''DEFAULTSESSION=xfce4-session'''
  '''DEFAULTSESSION=xfce4-session'''
Line 97: Line 95:
  esac
  esac


The '''default session''' has been set to xfce4 in this instance as the author's Manjaro installation came with that desktop environment pre-installed. Yours may be different, and you are entirely free to change it if you wish. The word '''exec''' means ''execute''. Note that between the lines 'case "$1" in' and 'esac', each line starts with the name of a desktop environment, followed by the command to ''execute'' a particular desktop environment. The exception is the last line which begins with an asterisk ('*'). This is to ensure that if a match is not found, then the default session will be started instead - in this instance, the command to start xfce.
The '''default session''' has been set to xfce4 in this instance as the author's Manjaro installation came with that desktop environment pre-installed. Yours may be different, and you are entirely free to change it if you wish. The word '''exec''' means ''execute''. Note that between the lines 'case "$1" in' and 'esac', each line starts with the name of a desktop environment, followed by the command to ''execute'' (i.e. start) that particular desktop environment. The exception is the last line which begins with an asterisk ('*'). This is to ensure that if a match is not found, then the default session will be started instead - in this instance, the command to start xfce.


'''You can use all of the lines between 'case "$1" in' and 'esac' in the above example if you wish, even if you do not have all of these desktop environments installed'''. Doing so will not cause any problems, and can make life much easier in future if you decide to install a new desktop (i.e. it will only be necessary to edit the SLiM configuration file). Otherwise, delete the approptiate lines for any desktops you do not have installed.
'''You can use all of the lines between 'case "$1" in' and 'esac' in the above example if you wish, even if you do not have all of these desktop environments installed'''. Doing so will not cause any problems, and can make life much easier in future if you decide to install a new desktop (i.e. it will only be necessary to edit the SLiM configuration file). Otherwise, delete the approptiate lines for any desktops you do not have installed.