[Debian-eeepc-devel] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 039eed916cd6511ea9cd9abd3ff8575bf816cab9
Damyan Ivanov
dmn at debian.org
Wed Mar 19 15:12:50 UTC 2008
The following commit has been merged in the master branch:
commit 039eed916cd6511ea9cd9abd3ff8575bf816cab9
Author: Damyan Ivanov <dmn at debian.org>
Date: Wed Mar 19 17:11:51 2008 +0200
notify(): Retrieve home directory from "getent passwd"
Do not blindly assume that all users have their home in /home/$user
diff --git a/actions/hotkey.sh b/actions/hotkey.sh
index 3667d78..34fa8a6 100755
--- a/actions/hotkey.sh
+++ b/actions/hotkey.sh
@@ -11,7 +11,8 @@ notify() {
if [ -S /tmp/.X11-unix/X0 ]; then
export DISPLAY=:0
user=$(who | sed -n '/ (:0[\.0].*)$\| :0 /{s/ .*//p;q}')
- XAUTHORITY=/home/$user/.Xauthority
+ home=$(getent passwd $user | cut -d: -f6)
+ XAUTHORITY=$home/.Xauthority
[ -f $XAUTHORITY ] && export XAUTHORITY
if [ "x$ENABLE_OSD" = "xno" ]; then
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-devel
mailing list