aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflepied <flepied@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2004-08-25 05:25:45 +0000
committerflepied <flepied@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2004-08-25 05:25:45 +0000
commitb6bbd3ff1081164a76bd53d1496abf291940efa0 (patch)
tree4908b80cd1dee8b9c40fa98b6ba69d8eaffd9a85
parentcbe68e4185e4181227bbfaa5c8f506e96cc6e871 (diff)
downloads2u-b6bbd3ff1081164a76bd53d1496abf291940efa0.tar
s2u-b6bbd3ff1081164a76bd53d1496abf291940efa0.tar.gz
s2u-b6bbd3ff1081164a76bd53d1496abf291940efa0.tar.bz2
s2u-b6bbd3ff1081164a76bd53d1496abf291940efa0.tar.xz
s2u-b6bbd3ff1081164a76bd53d1496abf291940efa0.zip
use display in temp filename
git-svn-id: svn+ssh://svn.mandriva.com/svn/soft/s2u/trunk@179793 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rwxr-xr-xs2u.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/s2u.sh b/s2u.sh
index cf2b1c6..c0e08d7 100755
--- a/s2u.sh
+++ b/s2u.sh
@@ -11,11 +11,11 @@
# attache itself to.
#---------------------------------------------------------------
+CURR_DISPLAY=`LC_ALL=C xdpyinfo | grep 'display' | awk '{print $4}'`
+
f="/tmp/dbus-$USER-xsession$CURR_DISPLAY"
vars() {
- CURR_DISPLAY=`LC_ALL=C xdpyinfo | grep 'display' | awk '{print $4}'`
-
if [ -f "$f" -a -O "$f" ]; then
. "$f"
fi