SHARE
TWEET

get-x11-display-device.sh

a guest Jan 9th, 2013 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top