diff --git a/SOURCES/acpid.power.sh b/SOURCES/acpid.power.sh
index 1b7c61b..536d638 100644
--- a/SOURCES/acpid.power.sh
+++ b/SOURCES/acpid.power.sh
@@ -8,7 +8,7 @@ ck-list-sessions | \
 awk '
 /^Session[0-9]+:$/ { uid = active = x11 = "" ; next }
 { gsub(/'\''/, "", $3) }
-$1 == "uid" { uid = $3 }
+$1 == "unix-user" { uid = $3 }
 $1 == "active" { active = $3 }
 $1 == "x11-display" { x11 = $3 }
 active == "TRUE" && x11 != "" {
@@ -21,7 +21,7 @@ active == "TRUE" && x11 != "" {
 ps axo uid,cmd | \
 awk '
     $1 == '$uid_session' &&
-	($2 == "gnome-power-manager" || $2 == "kpowersave") \
+	($2 == "gnome-power-manager" || $2 == "kpowersave" || $2 == "xfce4-power-manager") \
 		{ found = 1; exit }
     END { exit !found }
 ' ||
