mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 03:24:36 +08:00
41 lines
1.2 KiB
Diff
41 lines
1.2 KiB
Diff
--- 12.8/common/etc/ati/authatieventsd.sh 2012-08-09 22:44:34.000000000 +0200
|
|
+++ 12.8/common/etc/ati/authatieventsd.sh 2012-10-10 16:57:38.000000000 +0200
|
|
@@ -32,9 +32,9 @@
|
|
# vary depending upon whether X was started via xdm/kdm, gdm or startx, so
|
|
# check each one in turn.
|
|
|
|
- # Check xdm/kdm
|
|
+ # Check xdm
|
|
|
|
- XDM_AUTH_MASK=/var/lib/xdm/authdir/authfiles/A$1*
|
|
+ XDM_AUTH_MASK=/var/lib/xdm/authfiles/A$1*
|
|
XDM_AUTH_FILE=`ls -t $XDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file
|
|
if [ -n "$XDM_AUTH_FILE" ]; then
|
|
SERVER_AUTH_FILE=$XDM_AUTH_FILE
|
|
@@ -42,12 +42,22 @@
|
|
return 0
|
|
fi
|
|
|
|
- # Check gdm
|
|
+ # Check kdm
|
|
|
|
- GDM_AUTH_FILE=/var/lib/gdm/$1.Xauth
|
|
+ KDM_AUTH_MASK=/var/run/xauth/A$1*
|
|
+ KDM_AUTH_FILE=`ls -t $KDM_AUTH_MASK 2>/dev/null | head -n 1` # Choose the newest file
|
|
+ if [ -n "$KDM_AUTH_FILE" ]; then
|
|
+ SERVER_AUTH_FILE=$KDM_AUTH_FILE
|
|
+ DISP_SEARCH_STRING="#ffff#"
|
|
+ return 0
|
|
+ fi
|
|
+
|
|
+ # Check gdm 3
|
|
+
|
|
+ GDM_AUTH_FILE=/var/run/gdm/auth-for-gdm-*/database
|
|
if [ -e $GDM_AUTH_FILE ]; then
|
|
SERVER_AUTH_FILE=$GDM_AUTH_FILE
|
|
- DISP_SEARCH_STRING="$1"
|
|
+ DISP_SEARCH_STRING="unix$1"
|
|
return 0
|
|
fi
|
|
|