<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="session-custom" lang="hr">

  <info>
    <link type="guide" xref="sundry#session"/>
    <link type="guide" xref="login#management"/>
    <revision pkgversion="3.12" date="2014-06-17" status="review"/>

    <credit type="author copyright">
      <name>minnie_eg</name>
      <email>amany.elguindy@gmail.com</email>
      <years>2012</years>
    </credit>
    <credit type="editor">
      <name>Jana Svarova</name>
      <email>jana.svarova@gmail.com</email>
      <years>2013</years>
    </credit>
    <credit type="editor">
      <name>Petr Kovar</name>
      <email>pknbe@volny.cz</email>
      <years>2014</years>
    </credit>

    <license xmlns="http://projectmallard.org/1.0/" href="https://creativecommons.org/licenses/by-sa/3.0/">
  <p>This work is licensed under a <link href="https://creativecommons.org/licenses/by-sa/3.0/">Creative
  Commons Attribution-ShareAlike 3.0 Unported License</link>.</p>
</license>

    <desc>Stvaranje prilagođene sesije instaliranjem datoteke radne površine sesije.</desc>
  </info>

  <title>Stvaranje prilagođene sesiju</title>

 <p>Za stvaranje vlastite sesije s prilagođenim podešavanjem, slijedite ove korake:</p>

<steps>
  <item><p>Stvorite <file>.desktop</file> datoteku u <file>/etc/X11/sessions/<var>new-session</var>.desktop</file>. Provjerite sadrži li datoteka sljedeće unose:</p>
  <code>[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=<input>Custom session</input>
Comment=<input>This is our custom session</input>
Exec=<input>gnome-session --session=new-session</input></code>
   <p><code>Exec</code> unos navodi naredbu, po mogućnosti s argumentima, koju treba izvršiti. Prilagođenu sesiju možete pokrenuti pomoću naredbe <cmd>gnome-session --session=<var>new-session</var></cmd>.</p>
   <p>Za više informacija o parametrima koje možete koristiti s <cmd>gnome-session</cmd>, pogledajte <link its:translate="no" href="man:gnome-session">gnome-session</link> stranicu priručnika.</p>
  </item>
  <item><p>Stvorite prilagođenu datoteku sesije u <file>/usr/share/gnome-session/sessions/<var>new-session</var>.session</file> gdje možete navesti naziv i potrebne komponente za sesiju:</p>
   <code>[GNOME Session]
Name=<input>Custom Session</input>
RequiredComponents=<input>gnome-shell-classic;gnome-settings-daemon;</input></code>
  <p>Zapamtite da svaka stavka koju navedete u <code>RequiredComponents</code> mora imati odgovarajuću <file>.desktop</file> datoteku u <file>/usr/share/applications/</file>.</p>
  </item>
</steps>

  <p>Nakon podešavanja prilagođenih datoteka sesije, nova će sesija biti dostupna u popisu sesija na GDM zaslonu prijave.</p>

  <section id="custom-session-issues">
  <title>Poznati problemi</title>
    <p>Na Debian ili Debian temeljnim sustavima, sljedeća greška može nastati:</p>

    <screen>Xsession: unable to launch ""
    Xsession --- "" not found; falling back to default
    session.</screen>

    <p>Ako vam se ovo dogodi, slijedite ove korake za promjenu <file>/etc/X11/Xsession.d/20x11-common_process-args</file> datoteke:</p>
    <steps>
    <item><p>Promijenite <code>STARTUP_FULL_PATH=$(/usr/bin/which <input>"$1"</input>|| true)</code> to <code>STARTUP_FULL_PATH=$(/usr/bin/which <input>$1</input> || true)</code></p></item>
    <item><p>Promijenite <code>STARTUP=<input>"$1"</input></code> to <code>STARTUP=<input>$1</input></code></p></item>
    </steps>
  </section>

</page>
