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 kbut, 3 years ago

add new package

File size: 383 bytes
RevLine 
[2328]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
5if [ -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
10fi
Note: See TracBrowser for help on using the repository browser.