<?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="dconf-keyfiles" xml:lang="id">

  <info>
    <link type="guide" xref="setup"/>
    <link type="seealso" xref="dconf"/>
    <link type="seealso" xref="dconf-profiles"/>
    <revision pkgversion="3.30" date="2019-02-08" status="review"/>

    <credit type="author copyright">
      <name>Ryan Lortie</name>
      <email>desrt@desrt.ca</email>
      <years>2012</years>
    </credit>
    <credit type="author">
      <name>Aruna Sankaranarayanan</name>
      <email>aruna.evam@gmail.com</email>
    </credit>
    <credit type="editor">
      <name>Petr Kovar</name>
      <email>pknbe@volny.cz</email>
      <years>2019</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>

    <desc>Menggunakan <em>keyfiles</em> <sys its:translate="no">dconf</sys> untuk mengonfigurasi pengaturan tertentu dengan penyunting teks.</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, 2021</mal:years>
    </mal:credit>
  </info>

  <title>Mengendalikan pengaturan sistem dengan keyfiles</title>

  <p>System database files, located in
  <file its:translate="no">/etc/dconf/db</file>, cannot be edited because
  they are written in GVDB format. In order to change system settings using a
  text editor, you can modify <em>keyfiles</em> found in
  <em>keyfile directories</em>. Each keyfile directory corresponds to a
  particular system database file, and has the same name as the database file
  with a “.d” extension appended (for example,
  <file>/etc/dconf/db/local.d</file>). All keyfile directories are found in
  <file its:translate="no">/etc/dconf/db</file>, and each one contains keyfiles
  in a special format that can be compiled into the
  <sys its:translate="no">dconf</sys> database.</p>

  <listing>
    <title>Sebuah keyfile dalam direktori ini akan terlihat seperti ini:</title>
      <code>
# Some useful default settings for our site

[system/proxy/http]
host='172.16.0.1'
enabled=true

[org/gnome/desktop/background]
picture-uri='file:///usr/local/rupert-corp/company-wallpaper.jpeg'
      </code>
  </listing>

  <note style="important">
    <p><cmd>dconf update</cmd> harus dijalankan setiap kali Anda mengubah keyfile. Ketika Anda melakukannya, <sys its:translate="no">dconf</sys> membandingkan stempel waktu pada berkas basis data sistem dengan stempel waktu pada direktori keyfile yang sesuai. Jika stempel waktu pada direktori keyfile lebih baru dari yang ada di berkas basis data, <sys its:translate="no">dconf</sys> meregenerasi berkas <code>system-db</code> dan mengirimkan pemberitahuan ke sistem <sys>D-bus</sys>, yang pada gilirannya akan memberitahu semua aplikasi yang berjalan untuk membaca ulang pengaturan mereka.</p>
  </note>

  <p>Nama grup di keyfile mengacu <link href="https://developer.gnome.org/GSettings/">ID skema GSettings</link>. Sebagai contoh, <code>org/gnome/desktop/background</code> mengacu skema <code>org.gnome.desktop.background</code>, yang berisi kunci <code>picture-uri</code> .</p>

  <p>Nilai di bawah grup diharapkan dalam <link href="https://developer.gnome.org/glib/stable/gvariant-text.html">bentuk GVariant terserialisasi</link>.</p>

</page>
