Cannot lock screen due Unknown option -lock

Bug #1728880 reported by Denis Gorodnichev
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-mate-settings (Ubuntu)
Fix Released
Undecided
MATE Desktop

Bug Description

ubuntu-mate-default-settings provides default configuration to lock screen at file
/usr/share/glib-2.0/schemas/ubuntu-mate.gschema.override

by default to lock screen used command "mate-screensaver-command -lock" but mate-screensaver-command accept "--lock" argument

$ grep command /usr/share/glib-2.0/schemas/ubuntu-mate.gschema.override
[org.mate.Marco.keybinding-commands]
command-1='mate-screensaver-command -lock'
command-2='mate-screenshot --area --interactive'
run-command-1='<Mod4>l'
run-command-2='<Shift>Print'
run-command-terminal='<Control><Alt>t'

~/.xsession-errors contains "** (mate-screensaver-command:23100): WARNING **: Unknown option -lock"

Tags: artful
Revision history for this message
Etienne Papegnies (etienne-papegnies) wrote :

I see the same thing in the same file on my machine, but I have no issue locking the screen.
Do I need to do anything more to reproduce?

Changed in ubuntu-mate-settings (Ubuntu):
status: New → Incomplete
Revision history for this message
Denis Gorodnichev (d-g) wrote :

Try to reset /org/mate/marco/keybinding-commands/command-1 to default value

$ dconf reset /org/mate/marco/keybinding-commands/command-1

Revision history for this message
Denis Gorodnichev (d-g) wrote :

or switch to custom value
$ dconf write /org/mate/marco/keybinding-commands/command-1 "'mate-screensaver-command -lock'"

Revision history for this message
Denis Gorodnichev (d-g) wrote :

And press "Lock screen" keybinding

Changed in ubuntu-mate-settings (Ubuntu):
status: Incomplete → In Progress
assignee: nobody → MATE Desktop (mate-desktop)
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-mate-settings - 18.04.1

---------------
ubuntu-mate-settings (18.04.1) bionic; urgency=medium

  * Add window buttons applet to Mutiny layout.
  * Conform to glib-compile-schema naming convention for overrides. (LP: #1577715)
  * Correct Super+L keybinding to lock the screen. (LP: #1728880)
  * Drop AppMenu integration for Firefox and Thunderbird. (LP: #1719134)
  * Use defaultPref() for Firefox defaults. (LP: #1721965) However, the
    defaultPref() functionality is broken due to this upstream bug report:
    https://bugzilla.mozilla.org/show_bug.cgi?id=947838

 -- Martin Wimpress <email address hidden> Wed, 15 Nov 2017 23:05:55 +0000

Changed in ubuntu-mate-settings (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.