Skip to content

Commit

Permalink
Use xdg-screensaver to lock the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
otsaloma committed Jan 8, 2024
1 parent 6bfeec8 commit 60ba07e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PENDING: Catapult 1.0
should help avoid results jumping back forth in certain cases)
* Limit results returned per plugin (default 24) to avoid issues with
huge file indexes paired with short query strings (#23)
* Use `xdg-screensaver lock` in the session plugin to lock the screen in
GNOME (instead of the earlier `gnome-screensaver-command --lock`)

2023-08-31: Catapult 0.999
==========================
Expand Down
2 changes: 1 addition & 1 deletion catapult/plugins/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def split(title):
"desktops": ["GNOME"],
# TRANSLATORS: Include all possible variations separated by semicolons.
"titles": split(_("Lock Screen")),
"command": "gnome-screensaver-command --lock",
"command": "xdg-screensaver lock",
}, {
"desktops": ["GNOME"],
# TRANSLATORS: Include all possible variations separated by semicolons.
Expand Down

0 comments on commit 60ba07e

Please sign in to comment.