<?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="lockdown-printing" lang="tr">
     
  <info>
    <link type="guide" xref="user-settings#lockdown"/>
    <link type="seealso" xref="dconf-lockdown"/>
    <revision pkgversion="3.11" date="2014-12-04" status="review"/>

    <credit type="author copyright">
      <name>Jana Svarova</name>
      <email>jana.svarova@gmail.com</email>
      <years>2014</years>
    </credit>
    <credit type="author copyright">
      <name>Ekaterina Gerasimova</name>
      <email>kittykat3756@gmail.com</email>
      <years>2014</years>
    </credit>

    <license xmlns="http://projectmallard.org/1.0/" href="https://creativecommons.org/licenses/by-sa/3.0/">
  <p>This work is licensed under a <link href="https://creativecommons.org/licenses/by-sa/3.0/">Creative
  Commons Attribution-ShareAlike 3.0 Unported License</link>.</p>
</license>

    <desc>Prevent the user from printing documents.</desc>
  </info>

  <title>Disable printing</title>

  <p>You can disable the print dialog from being shown to users. This can be
  useful if you are giving temporary access to a user or you do not want the
  user to print to network printers.</p>

  <note style="warning">
    <p>This feature will only work in applications which support it! Not all
    GNOME and third party applications have this feature enabled. These changes
    will have no effect on applications which do not support this feature.</p>
  </note>

  <steps>
    <title>Disable printing</title>
    <item xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" xml:id="dconf-profile-user">
    <p>Create the <file its:translate="no">user</file> profile which contains
    the following lines:</p>
    <listing its:translate="no">
      <title><file>/etc/dconf/profile/user</file></title>
      <code>user-db:user
system-db:local</code>
    </listing>
    <p><input its:translate="no">local</input> is the name of a
    <sys its:translate="no" xref="dconf">dconf</sys> database.</p>
  </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-profile-user-dir">
    <p>Create the directory <file>/etc/dconf/db/local.d/</file>
    if it does not already exist.</p>
  </item>
    <item>
      <p>Create the key file
      <file>/etc/dconf/db/local.d/00-printing</file> to provide
      information for the <sys>local</sys> database.</p>
      <listing>
        <title><file>/etc/dconf/db/local.d/00-printing</file></title>
<code>
# Specify the dconf path
[org/gnome/desktop/lockdown]
 
# Prevent applications from printing
disable-printing=true
</code>
     </listing>
    </item>
    <item>
      <p>To prevent the user from overriding these settings, create the file
      <file>/etc/dconf/db/local.d/locks/printing</file> with the following
      content:</p>
      <listing>
        <title><file>/etc/dconf/db/local.d/locks/printing</file></title>
<code>
# Lock printing settings
/org/gnome/desktop/lockdown/disable-printing
</code>
      </listing>
    </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-update">
    <p>Update the system databases:</p>
    <screen><output style="prompt"># </output><input>dconf update</input></screen>
  </item>
    <item xmlns="http://projectmallard.org/1.0/" xml:id="dconf-logoutin">
    <p>Users must log out and back in again before the system-wide
    settings take effect.</p>
  </item>
  </steps>

</page>
