** Attachment added: "patch to add support for xss-lock" https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/2042740/+attachment/5716025/+files/patch.txt
** Description changed: It appears this was fixed in upstream "from freedesktop.org" https://bugs.freedesktop.org/show_bug.cgi?id=108865 However that patch did not fully work for me, as the '^xss-lock' pattern doesn't find "/usr/bin/xss-lock" which is how "ps" actually lists the process - This patch works for me: - ---------------------------------------------------------------------- - --- xdg-screensaver.orig 2021-11-19 11:09:46.000000000 -0800 - +++ xdg-screensaver 2023-11-04 11:01:01.877293873 -0700 - @@ -618,6 +618,14 @@ - xautolock_screensaver "$1" - ;; - - + xss-lock_screensaver) - + if [ "$1" = "lock" ]; then - + screensaver_xserver "activate" - + else - + screensaver_xserver "$1" - + fi - + ;; - + - xfce) - [ -n "$DISPLAY" ] && screensaver_xserver "$1" - ;; - @@ -1401,6 +1409,8 @@ - dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.cinnamon.ScreenSaver > /dev/null 2>&1 && DE="cinnamon" - # Consider "xautolock" a separate DE - xautolock -enable > /dev/null 2>&1 && DE="xautolock_screensaver" - +# Consider "xss-lock" a separate DE - +xss-lock --version > /dev/null 2>&1 && pgrep xss-lock > /dev/null 2>&1 && DE="xss-lock_screensaver" - - if [ "$action" = "resume" ] ; then - do_resume - [ + i'm attaching a patch which fixes the issue and is resilient to process + paths ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: xdg-utils 1.1.3-4.1ubuntu3~22.04.1 [modified: usr/bin/xdg-screensaver] ProcVersionSignature: Ubuntu 5.15.0-88.98-generic 5.15.126 Uname: Linux 5.15.0-88-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.5 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: LXQt Date: Sat Nov 4 11:16:36 2023 InstallationDate: Installed on 2020-06-04 (1248 days ago) InstallationMedia: Lubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203) PackageArchitecture: all SourcePackage: xdg-utils UpgradeStatus: Upgraded to jammy on 2022-09-03 (426 days ago) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xdg-utils in Ubuntu. https://bugs.launchpad.net/bugs/2042740 Title: xdg-screensaver doesn't support xss-lock Status in xdg-utils package in Ubuntu: New Bug description: It appears this was fixed in upstream "from freedesktop.org" https://bugs.freedesktop.org/show_bug.cgi?id=108865 However that patch did not fully work for me, as the '^xss-lock' pattern doesn't find "/usr/bin/xss-lock" which is how "ps" actually lists the process i'm attaching a patch which fixes the issue and is resilient to process paths ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: xdg-utils 1.1.3-4.1ubuntu3~22.04.1 [modified: usr/bin/xdg-screensaver] ProcVersionSignature: Ubuntu 5.15.0-88.98-generic 5.15.126 Uname: Linux 5.15.0-88-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.5 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: LXQt Date: Sat Nov 4 11:16:36 2023 InstallationDate: Installed on 2020-06-04 (1248 days ago) InstallationMedia: Lubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203) PackageArchitecture: all SourcePackage: xdg-utils UpgradeStatus: Upgraded to jammy on 2022-09-03 (426 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/2042740/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

