title: How do you open a file in gtkdialog using bash
body: <p>I am attempting to open a config file for editing with geany by pressing a button within a gtkdialog form. I am new to bash and gtkdialog but would appreciate a push in the right direction. </p>
  
  <pre><code>#! /bin/bash
  
  processconfig () {
  
      geany config
  
  }
  export script='
  &lt;vbox&gt;
  &lt;hbox&gt;
  &lt;button&gt;
    &lt;input file&gt;settings_VV_small.png&lt;/input&gt;
    &lt;variable&gt;button1&lt;/variable&gt;
  &lt;/button&gt;                    
  &lt;/hbox&gt;
  &lt;/vbox&gt;    
  '
  
  I=$IFS;
  IFS='
  '
  for STATEMENTS in  $(gtkdialog --program=script); do
        eval $STATEMENTS
  done 
  
  if [[ $BUTTON1 == "true" ]]
  
      then
          echo "Opening Config File"
          processconfig 
      fi
  
  
  IFS=$I
  
  [ $EXIT = sure ]
  </code></pre>