lockdown-printing.page 2.74 KB
Newer Older
1
2
3
4
5
6
7
8
<page xmlns="http://projectmallard.org/1.0/"
      xmlns:its="http://www.w3.org/2005/11/its"
      type="topic" style="task"
      id="lockdown-printing">
     
  <info>
    <link type="guide" xref="user-settings#lockdown"/>
    <link type="seealso" xref="dconf-lockdown" />
Kat's avatar
Kat committed
9
10
    <revision pkgversion="3.11" date="2014-12-04" status="review"/>

11
12
    <credit type="author copyright">
      <name>Jana Svarova</name>
13
      <email>jana.svarova@gmail.com</email>
14
15
      <years>2014</years>
    </credit>
Kat's avatar
Kat committed
16
17
    <credit type="author copyright">
      <name>Ekaterina Gerasimova</name>
18
      <email>kittykat3756@gmail.com</email>
Kat's avatar
Kat committed
19
20
21
      <years>2014</years>
    </credit>

22
    <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/>
Kat's avatar
Kat committed
23
24

    <desc>Prevent the user from printing documents.</desc>
25
  </info>
Kat's avatar
Kat committed
26

27
  <title>Disable printing</title>
Kat's avatar
Kat committed
28
29
30
31
32
33
34
35
36
37
38

  <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>

39
  <steps>
Kat's avatar
Kat committed
40
41
42
43
44
45
46
    <title>Disable printing</title>
    <include href="dconf-snippets.xml"
             xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"
             xmlns="http://www.w3.org/2001/XInclude"/>
    <include href="dconf-snippets.xml"
             xpointer="xpointer(/*/*[@xml:id='dconf-profile-user-dir'])"
             xmlns="http://www.w3.org/2001/XInclude"/>
47
    <item>
Kat's avatar
Kat committed
48
49
50
51
52
53
54
      <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
55
56
57
58
[org/gnome/desktop/lockdown]
 
# Prevent applications from printing
disable-printing=true
Kat's avatar
Kat committed
59
60
61
62
63
64
65
66
67
68
</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.db/locks/printing</file></title>
<code>
69
# Lock printing settings
Petr Kovář's avatar
Petr Kovář committed
70
/org/gnome/desktop/lockdown/disable-printing
Kat's avatar
Kat committed
71
72
</code>
      </listing>
73
    </item>
Kat's avatar
Kat committed
74
75
76
77
78
79
    <include href="dconf-snippets.xml"
             xpointer="xpointer(/*/*[@xml:id='dconf-update'])"
             xmlns="http://www.w3.org/2001/XInclude"/>
    <include href="dconf-snippets.xml"
             xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"
             xmlns="http://www.w3.org/2001/XInclude"/>
80
  </steps>
Kat's avatar
Kat committed
81

82
</page>