[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.1-16-ge28dc65

Damyan Ivanov dam at dee.dse.bg
Tue Jul 14 19:42:03 UTC 2009


The following commit has been merged in the master branch:
commit e28dc65bf4c0ed2a2b34deca8c2d4056c290aa7c
Author: Damyan Ivanov <dam at dee.dse.bg>
Date:   Tue Jul 14 22:40:03 2009 +0300

    functions.sh: run screensaver-command as the logged in user

diff --git a/debian/changelog b/debian/changelog
index dd306b9..13e8dd2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,7 +11,10 @@ eeepc-acpi-scripts (1.1.2) UNRELEASED; urgency=low
   * spelling fix in the default file
   * fix actions/wireless.sh usage message
 
- -- Darren Salt <linux at youmustbejoking.demon.co.uk>  Thu, 09 Jul 2009 22:56:19 +0100
+  [ Damyan Ivanov ]
+  * functions.sh: run screensaver-command as the logged in user
+
+ -- Damyan Ivanov <dmn at debian.org>  Tue, 14 Jul 2009 22:39:42 +0300
 
 eeepc-acpi-scripts (1.1.1) unstable; urgency=low
 
diff --git a/functions.sh b/functions.sh
index 0fd2d21..264af54 100644
--- a/functions.sh
+++ b/functions.sh
@@ -79,7 +79,7 @@ lock_x_screen()
             for ss in xscreensaver gnome-screensaver; do
                 [ -x /usr/bin/$ss-command ] \
                     && pidof /usr/bin/$ss > /dev/null \
-                    && $ss-command --lock
+                    && su - "$user" -c "DISPLAY=$(shell_quote "$DISPLAY") XAUTHORITY=$(shell_quote "$XAUTHORITY") $ss-command --lock"
             done
             # try locking KDE
             if [ -x /usr/bin/dcop ]; then

-- 
Maintenance of eeepc-acpi-scripts debian package



More information about the Debian-eeepc-commits mailing list