[gnome-screensaver] Add user option to pgrep



commit fa15d4f19a1cf107de0a324f4d3a70ebda20faa7
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Oct 21 19:50:00 2009 -0400

    Add user option to pgrep

 src/debug-screensaver.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/debug-screensaver.sh b/src/debug-screensaver.sh
index c8a05bd..66807b2 100755
--- a/src/debug-screensaver.sh
+++ b/src/debug-screensaver.sh
@@ -3,7 +3,7 @@
 # This is probably linux only at the moment
 
 if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
-    pid=`pgrep "gnome-session|x-session-manager"`
+    pid=`pgrep -u $USER "gnome-session|x-session-manager"`
     if [ "x$pid" != "x" ]; then
         env_address=`(cat /proc/$pid/environ; echo) | tr "\000" "\n" | grep '^DBUS_SESSION_BUS_ADDRESS='`
         env_display=`(cat /proc/$pid/environ; echo) | tr "\000" "\n" | grep '^DISPLAY='`



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]