~ubuntu-branches/ubuntu/saucy/gnome-user-docs/saucy

« back to all changes in this revision

Viewing changes to system-admin-guide/C/custom-session.page

  • Committer: Package Import Robot
  • Author(s): Matthew Fischer
  • Date: 2013-05-26 20:07:34 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20130526200734-g73i8zzk4nruad2x
Tags: 3.8.1-0ubuntu1
* New upstream release (LP: #1184461)
  - Updates to GNOME Help
  - Updated translations
  - Updates to System Admin Guide
* Bump Standards-Version to 3.9.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<page xmlns="http://projectmallard.org/1.0/"
 
2
      type="topic" style="task"
 
3
      id="custom-session">
 
4
  <info>
 
5
    <revision pkgversion="3.4.2" version="0.1" date="2012-12-01" status="draft"
 
6
    />
 
7
    <link type="guide" xref="index" group="login" />
 
8
 
 
9
    <credit type="author copyright">
 
10
      <name>minnie_eg</name>
 
11
      <email>amany.elguindy@gmail.com</email>
 
12
      <years>2012</years>
 
13
    </credit>
 
14
 
 
15
  <credit type="author copyright">
 
16
      <name>Jana Svarova</name>
 
17
      <email>jana.svarova@gmail.com</email>
 
18
      <years>2013</years>
 
19
    </credit>
 
20
 
 
21
    <desc>Install a desktop session file.</desc>
 
22
 
 
23
    <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
 
24
  </info>
 
25
 
 
26
  <title>Create a custom session</title>
 
27
 
 
28
  <comment>
 
29
    <cite date="2012-11-19"
 
30
    href="mailto:amany_elguindy@gmail.com">minnie_eg</cite>
 
31
    <p>This assumes the reader knows how to edit files as the root user and how
 
32
    to navigate through the manual page. By the end of this page,
 
33
    the reader will be able to create custom sessions with different
 
34
    options.</p>
 
35
  </comment>
 
36
 
 
37
 <p>To create a custom session with different options, follow these steps:</p>
 
38
 
 
39
<steps>
 
40
  <item><p>Create a desktop file in the <file>/usr/share/xsessions/new-session.desktop</file> file format. The content of the desktop file should contain the following entries:</p>
 
41
  <code>
 
42
  [Desktop Entry]
 
43
  Encoding=UTF-8
 
44
  Type=Application
 
45
  Name=Custom session
 
46
  Comment=This is our custom session
 
47
  <input>Exec</input>=gnome-session
 
48
  </code>
 
49
  </item>
 
50
  <item><p>Type <cmd>man gnome-session</cmd> into the Terminal to display more information on session options and
 
51
  parameters that can be used with <code>Exec</code>.</p>
 
52
  </item>
 
53
  <item><p>Save the custom session file that includes various parameters in
 
54
  the <file>/usr/share/gnome-session/sessions/new-session.session</file> file.</p>
 
55
  </item>
 
56
 <item>
 
57
  <p>Run the custom session by using the <cmd>Exec=gnome-session --session=new-session</cmd> command.</p>
 
58
  </item>
 
59
</steps>
 
60
 
 
61
<note style="note style">
 
62
  <p>Note that after creating the session desktop file with the user
 
63
  root, the new session will be available on the sessions list of the
 
64
  GDM log-in screen.</p>
 
65
</note>
 
66
 
 
67
 
 
68
 
 
69
 
 
70
<section id="custom-session-classic-mode">
 
71
  <title>Classic mode</title>
 
72
  <p>"classic mode" as an example of a custom session</p>
 
73
</section>
 
74
 
 
75
<section id="custom-session-set-up">
 
76
  <title>Set up a custom session</title>
 
77
  <p>How to set up a custom session that shows up in the session chooser on the login screen.</p>
 
78
</section>
 
79
<section id="custom-session-change">
 
80
  <title>Change the default session</title>
 
81
  <p>How to change the default session for new users.</p>
 
82
</section>
 
83
 
 
84
  <section id="custom-session-issues">
 
85
  <title>Known issues</title>
 
86
    <p>On a Debian or Debian-based system, the following error may occur:</p>
 
87
 
 
88
    <screen>Xsession: unable to launch ""
 
89
    Xsession --- "" not found; falling back to default
 
90
    session.</screen>
 
91
 
 
92
    <p>Should this happen to you, follow these steps to change the  
 
93
    <file>/etc/X11/Xsession.d/20x11-common_process-args</file> file.</p>
 
94
    <steps>
 
95
    <item><p>Change <code>STARTUP_FULL_PATH=$(/usr/bin/which <input>"$1"</input>|| true)</code>
 
96
    to <code>STARTUP_FULL_PATH=$(/usr/bin/which <input>$1</input> || true)</code>
 
97
    </p></item>
 
98
    <item><p>Change <code>STARTUP=<input>"$1"</input></code> to <code>STARTUP=<input>$1</input></code>
 
99
    </p></item>
 
100
    </steps>
 
101
  </section>
 
102
 
 
103
</page>