[gnome-user-docs] Forgot to add mime-types-application files



commit 6f375cb18bb2254e852efaf6d53f5c23eb97d2ca
Author: Petr Kovar <pkovar redhat com>
Date:   Tue Jun 17 18:09:18 2014 -0400

    Forgot to add mime-types-application files

 .../C/mime-types-application-user.page             |   91 ++++++++++++++++++++
 system-admin-guide/C/mime-types-application.page   |   89 +++++++++++++++++++
 system-admin-guide/Makefile.am                     |    2 +
 3 files changed, 182 insertions(+), 0 deletions(-)
---
diff --git a/system-admin-guide/C/mime-types-application-user.page 
b/system-admin-guide/C/mime-types-application-user.page
new file mode 100644
index 0000000..38ac397
--- /dev/null
+++ b/system-admin-guide/C/mime-types-application-user.page
@@ -0,0 +1,91 @@
+<page xmlns="http://projectmallard.org/1.0/";
+      type="topic" style="task"
+      id="mime-types-application-user">
+
+  <info>
+    <link type="guide" xref="software#management" />
+    <revision pkgversion="3.12" date="2014-06-17" status="review"/>
+
+    <credit type="author">
+      <name>Petr Kovar</name>
+      <email>pknbe volny cz</email>
+    </credit>
+
+  </info>
+
+    <title>Override the default registered application for individual users</title>
+    <p>
+      The <file>/usr/share/applications/defaults.list</file> file
+      specifies which application is registered to open specific MIME types by
+      default. To override the system defaults for individual users, you need to
+      create a <file>~/.local/share/applications/mimeapps.list</file>
+      file with a list of MIME types for which you want to override the default
+      registered application.
+    </p>
+    <steps>
+      <title>Override the default registered application for individual users</title>
+      <item>
+        <p>
+          Consult the <file>/usr/share/applications/defaults.list</file>
+          file to determine the MIME types for which you want to change the
+          default registered application. For example, the following sample of
+          the <file>defaults.list</file> file specifies the default
+          registered application for the <code>text/html</code> and
+          <code>application/xhtml+xml</code> MIME types:
+        </p>
+        <code>[Default Applications]
+text/html=epiphany.desktop
+application/xhtml+xml=epiphany.desktop</code>
+        <p>
+          The default application (<app>Epiphany</app>) is defined
+          by specifying its corresponding <file>.desktop</file> file
+          (<file>epiphany.desktop</file>). The system default location
+          for other applications' <file>.desktop</file> files is
+          <file>/usr/share/applications/</file>. Individual users'
+          <file>.desktop</file> files can be stored in
+          <file>~/.local/share/applications/</file>.
+        </p>
+      </item>
+      <item>
+        <p>
+          Create the <file>~/.local/share/applications/mimeapps.list</file>
+          file. In the file, specify the MIME types and their corresponding
+          default registered applications:
+        </p>
+        <code>[Default Applications]
+text/html=<var>myapplication1.desktop</var>
+application/xhtml+xml=<var>myapplication2.desktop</var>
+
+[Added Associations]
+text/html=<var>myapplication1.desktop</var>;
+application/xhtml+xml=<var>myapplication2.desktop</var>;</code>
+      <p>
+        This sets the default registered application for the
+        <code>text/html</code> MIME type to <code>myapplication1.desktop</code>,
+        and the default registered application for the
+        <code>application/xhtml+xml</code> MIME type to
+        <code>myapplication2.desktop</code>.
+      </p>
+        <p>For these settings to function properly, ensure that both the
+        <file>myapplication1.desktop</file> and
+        <file>myapplication2.desktop</file> files are placed in the
+        <file>/usr/share/applications/</file> directory.
+      </p>
+      </item>
+      <item>
+        <p>
+          You can use the <cmd>gvfs-mime --query</cmd> command to verify
+          that the default registered application has been set correctly:
+        </p>
+        <screen><output>$ </output><input>gvfs-mime --query text/html</input>
+Default application for 'text/html': myapplication1.desktop
+Registered applications:
+       myapplication1.desktop
+       epiphany.desktop
+Recommended applications:
+       myapplication1.desktop
+       epiphany.desktop</screen>
+      </item>
+    </steps>
+</page>
+
diff --git a/system-admin-guide/C/mime-types-application.page 
b/system-admin-guide/C/mime-types-application.page
new file mode 100644
index 0000000..f68ca3b
--- /dev/null
+++ b/system-admin-guide/C/mime-types-application.page
@@ -0,0 +1,89 @@
+<page xmlns="http://projectmallard.org/1.0/";
+      type="topic" style="task"
+      id="mime-types-application">
+
+  <info>
+    <link type="guide" xref="software#management" />
+    <link type="seealso" xref="mime-types-application-user" />
+    <revision pkgversion="3.12" date="2014-06-17" status="review"/>
+
+    <credit type="author">
+      <name>Petr Kovar</name>
+      <email>pknbe volny cz</email>
+    </credit>
+
+  </info>
+
+    <title>Override the default registered application for all users</title>
+    <p>
+      The <file>/usr/share/applications/defaults.list</file> file
+      specifies which application is registered to open specific MIME types by
+      default. To override the system defaults for all users on the system, you
+      need to create a <file>/usr/share/applications/mimeapps.list</file>
+      file with a list of MIME types for which you want to override the default
+      registered application.
+    </p>
+    <steps>
+      <title>Override the default registered application for all users</title>
+      <item>
+        <p>
+          Consult the <file>/usr/share/applications/defaults.list</file>
+          file to determine the MIME types for which you want to change the
+          default registered application. For example, the following sample of
+          the <file>defaults.list</file> file specifies the default
+          registered application for the <code>text/html</code> and
+          <code>application/xhtml+xml</code> MIME types:
+        </p>
+        <code>[Default Applications]
+text/html=epiphany.desktop
+application/xhtml+xml=epiphany.desktop</code>
+        <p>
+          The default application (<app>Epiphany</app>) is
+          defined by specifying its corresponding <file>.desktop</file>
+          file (<file>epiphany.desktop</file>). The default location for
+          other applications' <file>.desktop</file> files is
+          <file>/usr/share/applications/</file>.
+        </p>
+      </item>
+      <item>
+        <p>
+          Create the <file>/usr/share/applications/mimeapps.list</file>
+          file. In the file, specify the MIME types and their corresponding
+          default registered applications:
+        </p>
+        <code>[Default Applications]
+text/html=<var>myapplication1.desktop</var>
+application/xhtml+xml=<var>myapplication2.desktop</var>
+
+[Added Associations]
+text/html=<var>myapplication1.desktop</var>;
+application/xhtml+xml=<var>myapplication2.desktop</var>;</code>
+      <p>
+        This sets the default registered application for the
+        <code>text/html</code> MIME type to <code>myapplication1.desktop</code>,
+        and the default registered application for the
+        <code>application/xhtml+xml</code> MIME type to
+        <code>myapplication2.desktop</code>.</p>
+        <p>For these settings to function properly, ensure that both the
+        <file>myapplication1.desktop</file> and
+        <file>myapplication2.desktop</file> files are placed in the
+        <file>/usr/share/applications/</file> directory.
+      </p>
+      </item>
+      <item>
+        <p>
+          You can use the <cmd>gvfs-mime --query</cmd> command to verify
+          that the default registered application has been set correctly:
+        </p>
+        <screen><output>$ </output><input>gvfs-mime --query text/html</input>
+Default application for 'text/html': myapplication1.desktop
+Registered applications:
+       myapplication1.desktop
+       epiphany.desktop
+Recommended applications:
+       myapplication1.desktop
+       epiphany.desktop</screen>
+      </item>
+    </steps>
+</page>
+
diff --git a/system-admin-guide/Makefile.am b/system-admin-guide/Makefile.am
index cab4f92..202bd0b 100644
--- a/system-admin-guide/Makefile.am
+++ b/system-admin-guide/Makefile.am
@@ -35,6 +35,8 @@ HELP_FILES = \
        login-logo.page                 \
        login-userlist-disable.page     \
        mime-types.page \
+       mime-types-application.page     \
+       mime-types-application-user.page        \
        overrides.page                  \
        power-dim-screen.page           \
        printer-configuration.page      \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]