title: Connect to X server from the shell
body: <p>Is there a way to connect to the X server from the .sh script? I tried </p>
  
  <pre><code>#!/bin/bash
  export DISPLAY=:1
  BASEDIR=`dirname "${0}"`
  cd "$BASEDIR"
  python_header.py
  </code></pre>
  
  <p>but no luck.</p>