This assumes the reader knows how to edit files as the root user and how to navigate through the manual page. By the end of this page, the reader will be able to create custom sessions with different options.
To create your own session with customized configuration, follow these steps:
Create a
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Custom session
Comment=This is our custom session
Exec=gnome-session --session=new-session
The Exec
entry specifies the command, possibly
with arguments, to execute. You can run the custom session with the
For more information on the parameters that you can use with
Create a custom session file in
[GNOME Session]
Name=Custom Session
RequiredComponents=gnome-shell-classic;gnome-settings-daemon;
Note that any item that you specify in RequiredComponents
needs to have its corresponding
After configuring the custom session files, the new session will be available in the session list on the GDM login screen.
On a Debian or Debian-based system, the following error may occur:
Should this happen to you, follow these steps to change the
Change STARTUP_FULL_PATH=$(/usr/bin/which "$1"|| true)
to STARTUP_FULL_PATH=$(/usr/bin/which $1 || true)
Change STARTUP="$1"
to STARTUP=$1