diff options
Diffstat (limited to 'roles/tools/files/ssh/rc')
-rw-r--r-- | roles/tools/files/ssh/rc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/tools/files/ssh/rc b/roles/tools/files/ssh/rc new file mode 100644 index 0000000..35b7d34 --- /dev/null +++ b/roles/tools/files/ssh/rc | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | if [ -n "$DISPLAY" ]; then | ||
4 | export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" | ||
5 | read protocol cookie | ||
6 | xauth remove $DISPLAY | ||
7 | xauth add $DISPLAY "$protocol" "$cookie" | ||
8 | fi | ||