1<page xmlns="http://projectmallard.org/1.0/" 2 xmlns:its="http://www.w3.org/2005/11/its" 3 type="topic" style="task" 4 id="lockdown-file-saving"> 5 6 <info> 7 <link type="guide" xref="user-settings#lockdown"/> 8 <link type="seealso" xref="dconf-lockdown" /> 9 <revision pkgversion="3.11" date="2014-10-14" status="candidate"/> 10 11 <credit type="author copyright"> 12 <name>Jana Svarova</name> 13 <email>jana.svarova@gmail.com</email> 14 <years>2014</years> 15 </credit> 16 <credit type="author copyright"> 17 <name>Ekaterina Gerasimova</name> 18 <email>kittykat3756@gmail.com</email> 19 <years>2014</years> 20 </credit> 21 22 <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude"/> 23 24 <desc>Prevent the user from saving files to disk.</desc> 25 </info> 26 27 <title>Disable file saving</title> 28 29 <p>You can disable the <gui>Save</gui> and <gui>Save As</gui> dialogs. This 30 can be useful if you are giving temporary access to a user or you do not want 31 the user to save files to the computer.</p> 32 33 <note style="warning"> 34 <p>This feature will only work in applications which support it! Not all 35 GNOME and third party applications have this feature enabled. These changes 36 will have no effect on applications which do not support this feature.</p> 37 </note> 38 39 <steps> 40 <title>Disable file saving</title> 41 <include href="dconf-snippets.xml" 42 xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])" 43 xmlns="http://www.w3.org/2001/XInclude"/> 44 <include href="dconf-snippets.xml" 45 xpointer="xpointer(/*/*[@xml:id='dconf-profile-user-dir'])" 46 xmlns="http://www.w3.org/2001/XInclude"/> 47 <item> 48 <p>Create the key file 49 <file>/etc/dconf/db/local.d/00-filesaving</file> to provide 50 information for the <sys>local</sys> database.</p> 51 <listing> 52 <title><file>/etc/dconf/db/local.d/00-filesaving</file></title> 53<code> 54# Specify the dconf path 55[org/gnome/desktop/lockdown] 56 57# Prevent the user from saving files on disk 58disable-save-to-disk=true 59</code> 60 </listing> 61 </item> 62 <item> 63 <p>To prevent the user from overriding these settings, create the file 64 <file>/etc/dconf/db/local.d/locks/filesaving</file> with the following 65 content:</p> 66 <listing> 67 <title><file>/etc/dconf/db/local.db/locks/filesaving</file></title> 68<code> 69# Lock file saving settings 70/org/gnome/desktop/lockdown/disable-save-to-disk 71</code> 72 </listing> 73 </item> 74 <include href="dconf-snippets.xml" 75 xpointer="xpointer(/*/*[@xml:id='dconf-update'])" 76 xmlns="http://www.w3.org/2001/XInclude"/> 77 <include href="dconf-snippets.xml" 78 xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])" 79 xmlns="http://www.w3.org/2001/XInclude"/> 80 </steps> 81 82</page> 83