source:
lliurex-rpi-packages/trunk/fuentes/ldm/ltsp/xinitrc.d/I00-xauth
@
2328
Last change on this file since 2328 was 2328, checked in by , 4 years ago | |
---|---|
File size: 383 bytes |
Line | |
---|---|
1 | # Generate XAUTHORITY if not already set |
2 | |
3 | # NOTE: ldm generates its XAUTHORITY in the screen script, so this |
4 | # should only apply to other sessions |
5 | if [ -z "$XAUTHORITY" ] && [ -n "$DISPLAY" ]; then |
6 | rm /var/run/xauth-$DISPLAY-* 2>/dev/null |
7 | XAUTHORITY=`mktemp -u /var/run/xauth-$DISPLAY-XXXXXXXXX` |
8 | export XAUTHORITY |
9 | xauth generate $DISPLAY . trusted || true |
10 | fi |
Note: See TracBrowser
for help on using the repository browser.