Advertisement
Guest User

get-x11-display-device.sh

a guest
Jan 9th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. display=$1
  4. name=$2
  5. data=$3
  6. #echo "display: $display name: $name data: $data"
  7.  
  8. # don't overwrite user's ~/.Xauthority
  9. xauthority_file=$(mktemp)
  10. XAUTHORITY=$xauthority_file
  11.  
  12. xauth -q add $display $name $data
  13.  
  14. /usr/lib/ConsoleKit/ck-get-x11-display-device --display $display | tr -d '\n'
  15.  
  16. rm -f $xauthority_file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement