source: lliurex-rpi-packages/trunk/fuentes/ldm/ltsp/xinitrc.d/I00-xauth

Last change on this file was 2328, checked in by kbut, 4 years ago

add new package

File size: 383 bytes
1# Generate XAUTHORITY if not already set
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
Note: See TracBrowser for help on using the repository browser.