Public bug reported: Hi,
I just switched to XFCE (both Unity and Gnome Shell suck) but the "lock screen" was not working. I'm still using gnome-screensaver as it's a lot superior to xscreensaver and it does the job just fine. I checked xflock4 and I noticed it was trying to detect which screensaver was running, which is all fine and ok, the problem is that it's using "pgrep" that will truncate the command names to 15 characters (because it's reading /proc/*/status which shows only the first 15 characters of the command name), that way it will not find gnome-screensaver. See the example below: $ ps -f 1813 UID PID PPID C STIME TTY STAT TIME CMD 1000 1813 1757 0 22:19 ? Sl 0:03 gnome-screensaver $ pgrep gnome-screensaver $ pgrep gnome-screensav 1813 $ pgrep -f gnome-screensaver 1813 $ pidof gnome-screensaver 1813 $ Notice that "pgrep" finds the process if you're looking for gnome- screensav instead, with the 15 first characters only. The solution I would recommend is to either use "pgrep -f" which looks at the whole command line (/proc/*/cmdline) or to use "pidof" which will look at the command line as well. Other than that, congrats on the great product that Xubuntu is, it's really great to have it around now that the default GUI is unusable to any power user! Keep up the great work! ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: xfce4-utils 4.8.3-0ubuntu1 [modified: usr/bin/xflock4] ProcVersionSignature: Ubuntu 3.0.0-12.20-generic-pae 3.0.4 Uname: Linux 3.0.0-12-generic-pae i686 ApportVersion: 1.23-0ubuntu3 Architecture: i386 Date: Sun Oct 16 23:39:36 2011 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007) ProcEnviron: LC_COLLATE=C PATH=(custom, user) LANG=en_CA.UTF-8 SHELL=/bin/bash SourcePackage: xfce4-utils UpgradeStatus: Upgraded to oneiric on 2011-10-16 (0 days ago) ** Affects: xfce4-utils (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug i386 oneiric -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/876183 Title: xflock4 doesn't properly detect gnome-screensaver (pgrep is busted) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xfce4-utils/+bug/876183/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs