<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="mime-types-application" xml:lang="id">

  <info>
    <link type="guide" xref="software#management"/>
    <link type="seealso" xref="mime-types-application-user"/>
    <link type="seealso" xref="mime-types-custom-user"/>
    <link type="seealso" xref="mime-types-custom"/>
    <revision pkgversion="3.30" date="2019-02-08" status="review"/>

    <credit type="author copyright">
      <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>Customize which application opens a specific MIME type.</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Andika Triwidada</mal:name>
      <mal:email>andika@gmail.com</mal:email>
      <mal:years>2020-2023</mal:years>
    </mal:credit>
  </info>

    <title>Override the default registered application for all users</title>
    <p>Berkas <file>/usr/share/applications/mimeapps.list</file> dan <file>/usr/share/applications/gnome-mimeapps.list</file> menentukan aplikasi yang terdaftar untuk membuka jenis MIME tertentu secara baku. Berkas ini disediakan oleh distribusi.</p>

      <p>To override the system defaults for all users on the system, you
      need to create a <file>/etc/xdg/mimeapps.list</file> or
      <file>/etc/xdg/gnome-mimeapps.list</file> file with a list of MIME types
      for which you want to override the default registered application.</p>

      <note>
      <p>Berkas yang terletak di <file>/etc/xdg/</file> diutamakan daripada berkas yang ditemukan di <file>/usr/share/applications/</file>. Selain itu, <file>/etc/xdg/GNOME-mimeapps.list</file> lebih diutamakan daripada <file>/etc/xdg/mimeapps.list</file>, namun bisa ditimpa oleh konfigurasi pengguna di <file>~/.config/mimeapps.list</file>.</p>
      </note>

    <steps>
      <title>Override the default registered application for all users</title>
      <item>
        <p>Konsultasikan berkas <file>/usr/share/applications/mimeapps.list</file> untuk menentukan tipe MIME yang ingin Anda ubah aplikasi terdaftar baku untuknya. Misalnya, contoh berikut dari berkas <file>mimeapps.list</file> menentukan aplikasi terdaftar baku untuk tipe MIME <code>text/html</code> <code>application/xhtml+xml</code>:</p>
        <code>[Default Applications]
text/html=epiphany.desktop
application/xhtml+xml=epiphany.desktop</code>
        <p>Aplikasi baku (<app>Epiphany</app>) didefinisikan dengan menentukan berkas <file>.desktop</file> yang sesuai (<file>epiphany.desktop</file>). Lokasi baku untuk berkas <file>.desktop</file> aplikasi lain adalah <file>/usr/share/applications/</file>.</p>
      </item>
      <item>
        <p>
          Create the <file>/etc/xdg/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>Agar pengaturan ini berfungsi dengan baik, pastikan berkas <file>myapplication1.desktop</file> dan <file>myapplication2.desktop</file> ditempatkan di direktori <file>/usr/share/applications/</file>.</p>
      </item>
      <item>
        <p>
          You can use the <cmd>gio mime</cmd> command to verify
          that the default registered application has been set correctly:
        </p>
        <screen><output>$ </output><input>gio mime 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>
