From 60ba07ecb2612023f4446f904543b779efca8d52 Mon Sep 17 00:00:00 2001 From: Osmo Salomaa Date: Mon, 8 Jan 2024 22:56:58 +0200 Subject: [PATCH] Use xdg-screensaver to lock the screen --- NEWS.md | 2 ++ catapult/plugins/session.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 4282be8..b9c61dc 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 ========================== diff --git a/catapult/plugins/session.py b/catapult/plugins/session.py index f89c5d5..d13c3d4 100644 --- a/catapult/plugins/session.py +++ b/catapult/plugins/session.py @@ -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.