imported>Verityproductions |
imported>Verityproductions |
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). In essence, the .xinitrc file will take the name of your chosen (or only) desktop environment from SLiM, and then use that to determine which command to use to actually start it. 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: | | {{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 within the terminal using nano, then enter: | | '''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 |
|
| |
|
| sudo nano ~/.xinitrc
| |
|
| |
|
| | ==Ensure the X-Windows Initialisation File Runs Installed Environments== |
|
| |
|
| Otherwise you could use the ''gedit'' text editor instead, by entering the command:
| | {{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.}} |
|
| |
|
| sudo gedit ~/.xinitrc
| |
|
| |
|
| | 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>: |
|
| |
|
| ==Add Desktop Environments to the X-Windows Initialisation File==
| | exec $1 |
|
| |
|
| Again, the purpose of editing this file is to:
| |
|
| |
|
| * list the name(s) (or labels) of your installed desktop environment(s) from the SLiM configuration file, and
| | '''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: |
| * 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 names and commands themselves must be added after the '''DEFAULTSESSION=''' command. All the names used in the SLiM configuration file above have been listed exactly the same way here, and have been '''<font color="green">colured in green</font color>''' for illustrative purposes.
| |
|
| |
|
| #!/bin/sh | | #!/bin/sh |
Line 119: |
Line 126: |
|
| |
|
|
| |
|
| 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. Note that each line starting with green text:
| |
|
| |
| '''1.''' starts with the '''<font color="green">''name'' of the desktop environment</font color>'''
| |
|
| |
| '''2.''' uses the command ''exec'' which means ''execute'' (i.e. start), and
| |
|
| |
| '''3.''' ends with the actual ''command'' necessary to start a desktop environment appropriate to the name
| |
|
| |
|
| |
| The exception is the last line which begins with an asterisk ('*' - a wildcard). This is to ensure that if a match is not found, then the default session will be started instead - which in this instance, is xfce4. Again, if the name of a desktop environment listed in this file does not exactly match a name passed to it by the SLiM configuration file, then the actual command to start that desktop cannot be executed.
| |
|
| |
| If you wish, you are free to use the entire example provided in your own .xinitrc file, 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 if you decide to install any new desktops at a future point (i.e. it will only be necessary to edit the SLiM configuration file). '''Otherwise you may just delete the lines for any desktop environments that you do not have installed'''.
| |
|
| |
|
| |
| Once your amendments have been completed, save your changes and close the configuration file by:
| |
|
| |
| * '''nano''': Press CTRL and 'x' to exit, 'y' to save, and <enter> to finish, or
| |
| * '''gedit''': Select the 'save' option and then close the window.
| |
|
| |
|
|
| |
|
| 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. |
|
| |
|
|
| |
|