summaryrefslogtreecommitdiffstats
path: root/x11/gdm2/files/patch-config_PostSession.in
blob: 5d66350862271210b2c259daec160d4b2983636b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- config/PostSession.in.orig  Mon Jun 16 16:42:51 2003
+++ config/PostSession.in   Mon Jun 16 16:43:18 2003
@@ -2,7 +2,7 @@
 
 PATH=@X_PATH@:$PATH
 
-if command -v sessreg > /dev/null 2>&1; then
-   sessreg -d -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l $DISPLAY $USER
+if /usr/bin/which -s sessreg > /dev/null 2>&1; then
+   sessreg -d -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" $USER
 fi
 exit 0