Skip to content

Commit b2f1dee

Browse files
Tim Lanetilne
authored andcommitted
Disable locking screen at all
Previously only screen locking via the screensaver was being disabled. Disable locking the screen for any reason. Signed-off-by: Tim Lane <[email protected]>
1 parent e4ecdd5 commit b2f1dee

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[org.gnome.desktop.screensaver]
22
lock-enabled = false
3+
4+
[org.gnome.desktop.lockdown]
5+
disable-lock-screen = true

recipes/tests.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@
252252
execute 'check DCV external authenticator python version' do
253253
command %(#{node['cfncluster']['dcv']['authenticator']['virtualenv_path']}/bin/python -V | grep "Python #{node['cfncluster']['python-version']}")
254254
end
255+
execute 'check screensaver screen lock disabled' do
256+
command 'gsettings get org.gnome.desktop.screensaver lock-enabled | grep false'
257+
end
258+
execute 'check non-screensaver screen lock disabled' do
259+
command 'gsettings get org.gnome.desktop.lockdown disable-lock-screen | grep true'
260+
end
255261
end
256262

257263
###################

0 commit comments

Comments
 (0)