Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- display=$1
- name=$2
- data=$3
- #echo "display: $display name: $name data: $data"
- # don't overwrite user's ~/.Xauthority
- xauthority_file=$(mktemp)
- XAUTHORITY=$xauthority_file
- xauth -q add $display $name $data
- /usr/lib/ConsoleKit/ck-get-x11-display-device --display $display | tr -d '\n'
- rm -f $xauthority_file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement