文件操作 - desktop-favorite-applications.page
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/help/es/system-admin-guide/desktop-favorite-applications.page
编辑文件内容
<?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="desktop-favorite-applications" xml:lang="es"> <info> <link type="guide" xref="appearance"/> <revision pkgversion="3.8" date="2013-04-28" status="draft"/> <credit type="author"> <name>Aruna Sankaranarayanan</name> <email>aruna.evam@gmail.com</email> </credit> <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/> <desc>Customize the default favourites in the Activities overview.</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>Aplicaciones favoritas predeterminadas</title> <p>Favorite applications are those visible on the <link href="help:gnome-help/shell-terminology">dash</link>. You can use <sys its:translate="no">dconf</sys> to set favorite applications for one user, or to set the same favorite applications for all users. For both cases, you must first edit the <sys its:translate="no">dconf</sys> profile found in <file its:translate="no">/etc/dconf/profile</file>.</p> <section id="per-user"> <title>Establecer aplicaciones favoritas diferentes para diferentes usuarios</title> <p>You can set the default favorite applications for each user by modifying their user database file found in <file its:translate="no">~/.config/dconf/user</file>. The following example snippet uses <sys its:translate="no">dconf</sys> to set <app>gedit</app>, <app>Terminal</app> and <app>Nautilus</app> as default favorites for a user. The example code allows users to modify the list later, if they wish to do so.</p> <!--The code itself need not be translated but the comments withing the code have to be translated.-Aruna--> <listing> <title>Contenido de <file its:translate="no">/etc/dconf/profile</file>:</title> <code> #This line allows the user to change the default favorites later. user-db:user </code> </listing> <listing> <title>Contenido de <file its:translate="no">~/.config/dconf/user</file>:</title> <code> #Set gedit, terminal and nautilus as default favorites [org/gnome/shell] favorite-apps = [<input>'gedit.desktop'</input>, <input>'gnome-terminal.desktop'</input>, <input>'nautilus.desktop'</input>] </code> </listing> <note style="tip"> <p>You can also <link xref="dconf-lockdown">lock down</link> the above settings to prevent users from changing them.</p> </note> </section> <section id="all-users"> <title>Establecer las mismas aplicaciones favoritas para todos los usuarios</title> <p>In order to have the same favorites for all users, you must modify system database files using <link xref="dconf-keyfiles">dconf keyfiles</link>. The following code snippets edit the <sys its:translate="no">dconf</sys> profile and then create a keyfile to set default favorite applications for all employees in the first floor of an organization.</p> <!--The code itself need not be translated but the comments within the code have to be translated.-Aruna--> <listing> <title>Contenido de <file its:translate="no">/etc/dconf/profile</file>:</title> <code> user-db:user #This line defines a system database file called first_floor system-db:first_floor </code> </listing> <note style="info"> <p>Settings from the <code>user</code> database file will take precedence over the settings in the <code>first_floor</code> database file, but <link xref="dconf-lockdown">locks</link> introduced in the <code>first_floor</code> database file will take priority over those present in <code>user</code>.</p> </note> <listing> <title>Contenido de <file its:translate="no">/etc/dconf/db/first_floor.d/00_floor1_settings</file>:</title> <code> # Snippet sets gedit, terminal and nautilus as default favorites # for all users in the first floor [org/gnome/shell] favorite-apps = [<input>'gedit.desktop'</input>, <input>'gnome-terminal.desktop'</input>, <input>'nautilus.desktop'</input>] </code> </listing> <p>Incorporate your changes into the system databases by running <cmd>dconf update</cmd>.</p> </section> </page>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件