1GNOME-SESSION(1)            General Commands Manual           GNOME-SESSION(1)
2
3
4

NAME

6       gnome-session - Start the GNOME desktop environment
7

SYNOPSIS

9       gnome-session  [-a|--autostart=DIR] [--session=SESSION] [--failsafe|-f]
10       [--debug] [--whale]
11

DESCRIPTION

13       The gnome-session program starts up the GNOME desktop environment. This
14       command  is  typically executed by your login manager (either gdm, xdm,
15       or from your X startup scripts). It will load either  your  saved  ses‐
16       sion,  or  it will provide a default session for the user as defined by
17       the system administrator (or the default  GNOME  installation  on  your
18       system).
19
20       The  default  session is defined in gnome.session, a .desktop-like file
21       that  is   looked   for   in   $XDG_CONFIG_HOME/gnome-session/sessions,
22       $XDG_CONFIG_DIRS/gnome-session/sessions  and  $XDG_DATA_DIRS/gnome-ses‐
23       sion/sessions.
24
25       When saving a session, gnome-session saves the currently running appli‐
26       cations in the $XDG_CONFIG_HOME/gnome-session/saved-session directory.
27
28       gnome-session is an X11R6 session manager. It can manage GNOME applica‐
29       tions as well as any X11R6 SM compliant application.
30

OPTIONS

32       The following options are supported:
33
34       --autostart=DIR
35              Start all applications defined in DIR, instead of  starting  the
36              applications  defined  in  gnome.session,  or  via the --session
37              option. Multiple --autostart options can be passed.
38
39       --session=SESSION
40              Use the applications defined in SESSION.session. If  not  speci‐
41              fied, gnome.session will be used.
42
43       --failsafe
44              Run  in  fail-safe mode. User-specified applications will not be
45              started.
46
47       --debug
48              Enable debugging code.
49
50       --whale
51              Show the fail whale in a dialog for debugging it.
52

SESSION DEFINITION

54       Sessions are defined in .session files, that are using a  .desktop-like
55       format, with the following keys in the GNOME Session group:
56
57       Name   Name of the session. This can be localized.
58
59       RequiredComponents
60              List  of component identifiers (desktop files) that are required
61              by the session. The required components will always run  in  the
62              session.
63
64       Here is an example of a session definition:
65
66           [GNOME Session]
67           Name=GNOME
68           RequiredComponents=gnome-shell;gnome-settings-daemon;
69
70       The  .session  files  are  looked  for  in  $XDG_CONFIG_HOME/gnome-ses‐
71       sion/sessions,       $XDG_CONFIG_DIRS/gnome-session/sessions        and
72       $XDG_DATA_DIRS/gnome-session/sessions.
73

ENVIRONMENT

75       gnome-session  sets  several  environment  variables for the use of its
76       child processes:
77
78       SESSION_MANAGER
79
80              This variable is used by session-manager aware clients  to  con‐
81              tact gnome-session.
82
83       DISPLAY
84
85              This  variable  is set to the X display being used by gnome-ses‐
86              sion. Note that if the --display option is used  this  might  be
87              different  from  the  setting  of  the environment variable when
88              gnome-session is invoked.
89

FILES

91       $XDG_CONFIG_HOME/config/autostart     $XDG_CONFIG_DIRS/config/autostart
92       /usr/share/gnome/autostart
93
94              The applications defined in those directories will be started on
95              login.  gnome-session-properties(1) can be used to  easily  con‐
96              figure them.
97
98       $XDG_CONFIG_HOME/gnome-session/sessions     $XDG_CONFIG_DIRS/gnome-ses‐
99       sion/sessions $XDG_DATA_DIRS/gnome-session/sessions
100
101              These directories contain the .session files that  can  be  used
102              with the --session option.
103
104       $XDG_CONFIG_HOME/gnome-session/saved-session
105
106              This  directory  contains  the list of applications of the saved
107              session.
108

BUGS

110       If you find bugs in the gnome-session program, please report  these  on
111       https://bugzilla.gnome.org.
112

SEE ALSO

114       gnome-session-properties(1) gnome-session-quit(1)
115
116
117
118                                     GNOME                    GNOME-SESSION(1)
Impressum