文件操作 - session-custom.page
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/help/es/system-admin-guide/session-custom.page
编辑文件内容
<?xml version="1.0" encoding="utf-8"?> <page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="session-custom" xml:lang="es"> <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> <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/> <desc>Crear una sesión personalizada instalando un archivo .desktop de sesión.</desc> <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright"> <mal:name>Daniel Mustieles</mal:name> <mal:email>daniel.mustieles@gmail.com</mal:email> <mal:years>2017</mal:years> </mal:credit> </info> <title>Crear una sesión personalizada</title> <p>Para crear su propia sesión con una configuración personalizada, siga estos pasos:</p> <steps> <item><p>Cree un archivo <file>.desktop</file> en <file>/etc/X11/sessions/<var>new-session</var>.desktop</file>. Asegúrese de que contiene las siguientes entradas:</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>The <code>Exec</code> entry specifies the command, possibly with arguments, to execute. You can run the custom session with the <cmd>gnome-session --session=<var>new-session</var></cmd> command.</p> <p>Para obtener más información sobre los parámetros que puede usar con <cmd>gnome-session</cmd>, consulte la página del manual de <link href="man:gnome-session">gnome-session</link>.</p> </item> <item><p>Create a custom session file in <file>/usr/share/gnome-session/sessions/<var>new-session</var>.session</file> where you can specify the name and required components for the session:</p> <code>[GNOME Session] Name=<input>Custom Session</input> RequiredComponents=<input>gnome-shell-classic;gnome-settings-daemon;</input></code> <p>Note that any item that you specify in <code>RequiredComponents</code> needs to have its corresponding <file>.desktop</file> file in <file>/usr/share/applications/</file>.</p> </item> </steps> <p>After configuring the custom session files, the new session will be available in the session list on the GDM login screen.</p> <section id="custom-session-issues"> <title>Problemas conocidos</title> <p>En Debian o sistemas basados en Debian, puede producirse el siguiente error:</p> <screen>Xsession: unable to launch "" Xsession --- "" not found; falling back to default session.</screen> <p>Should this happen to you, follow these steps to change the <file>/etc/X11/Xsession.d/20x11-common_process-args</file> file:</p> <steps> <item><p>Cambie <code>STARTUP_FULL_PATH=$(/usr/bin/which <input>"$1"</input>|| true)</code> por <code>STARTUP_FULL_PATH=$(/usr/bin/which <input>$1</input> || true)</code></p></item> <item><p>Cambie <code>STARTUP=<input>"$1"</input></code> por <code>STARTUP=<input>$1</input></code></p></item> </steps> </section> </page>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件