1<?xml version="1.0" encoding="utf-8"?> 2<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" type="topic" style="task" id="desktop-lockscreen" xml:lang="tr"> 3 4 <info> 5 <link type="guide" xref="appearance"/> 6 <link type="seealso" xref="dconf-profiles"/> 7 <link type="seealso" xref="dconf-lockdown"/> 8 <revision pkgversion="3.30" date="2019-02-08" status="review"/> 9 10 <credit type="author copyright"> 11 <name>Jana Svarova</name> 12 <email>jana.svarova@gmail.com</email> 13 <years>2013</years> 14 </credit> 15 <credit type="editor"> 16 <name>Shaun McCance</name> 17 <email>shaunm@gnome.org</email> 18 <years>2014</years> 19 </credit> 20 <credit type="editor"> 21 <name>Petr Kovar</name> 22 <email>pknbe@volny.cz</email> 23 <years>2019</years> 24 </credit> 25 26 <desc>Make the screen automatically lock, so the user must 27 enter a password after being idle.</desc> 28 </info> 29 30 <title>Lock the screen when the user is idle</title> 31 32 <p>You can make the screen lock automatically whenever the user 33 is idle for some amount of time. This is useful if users 34 may leave their computers unattended in public or unsecure 35 locations.</p> 36 37 <steps> 38 <title>Enable automatic screen lock</title> 39 <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user'])"/> 40 <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-profile-user-dir'])"/> 41 <item> 42 <p>Create the key file 43 <file>/etc/dconf/db/local.d/00-screensaver</file> to provide 44 information for the <sys>local</sys> database.</p> 45 <listing> 46 <title><file>/etc/dconf/db/local.d/00-screensaver</file></title> 47<code> 48# Specify the dconf path 49[org/gnome/desktop/session] 50 51# Number of seconds of inactivity before the screen goes blank 52# Set to 0 seconds if you want to deactivate the screensaver. 53idle-delay=uint32 180 54 55# Specify the dconf path 56[org/gnome/desktop/screensaver] 57 58# Number of seconds after the screen is blank before locking the screen 59lock-delay=uint32 0 60</code> 61 </listing> 62 <p>You must include the <code>uint32</code> along with the 63 integer key values as shown.</p> 64 </item> 65 <item> 66 <p>To prevent the user from overriding these settings, create the file 67 <file>/etc/dconf/db/local.d/locks/screensaver</file> with the following 68 content:</p> 69 <listing> 70 <title><file>/etc/dconf/db/local.db/locks/screensaver</file></title> 71<code> 72# Lock desktop screensaver settings 73/org/gnome/desktop/session/idle-delay 74/org/gnome/desktop/screensaver/lock-delay 75</code> 76 </listing> 77 </item> 78 <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-update'])"/> 79 <include xmlns="http://www.w3.org/2001/XInclude" href="dconf-snippets.xml" xpointer="xpointer(/*/*[@xml:id='dconf-logoutin'])"/> 80 </steps> 81 82</page> 83