I looked at dconf and locks and I came up with this script to try to enforce screen locking. It doesn't work. I used to have this working under debian but can't seem to get it to work under ubuntu. Can anyone advise me on what I'm doing wrong?
#!/bin/bash -x umask 0022 mkdir -p /etc/dconf/db/ibus.d/locks printf "#Defaults set in /usr/share/glib-2.0/schemas/60_charles.gschema.override #Recompile schemas with: # glib-compile-schemas /usr/share/glib-2.0/schemas/ #Update dconf with: # dconf update /org/gnome/desktop/session/idle-delay /org/gnome/desktop/screensaver/lock-enabled /org/gnome/desktop/screensaver/lock-delay " > /etc/dconf/db/ibus.d/locks/00-default-screen-lock printf "[org.gnome.desktop.session] idle-delay=900 [org.gnome.desktop.screensaver] lock-enabled=true lock-delay=60 " > /usr/share/glib-2.0/schemas/60_charles.gschema.override glib-compile-schemas /usr/share/glib-2.0/schemas/ dconf update