title: How to do multiple arguments with Python Popen?
body: <p>I am trying to make a PyGtk Gui, that has a button. When the user presses this button, <code>gnome-terminal</code> prompts the user to write their password.</p>
  <p>Then it will clone this <a href="https://github.com/pererinha/gedit-snippet-jquery" rel="noreferrer">Git repository</a> for <code>gedit</code> JQuery snippets.</p>
  <p>And then, it copies the <code>js.xml</code> file to <code>/usr/share/gedit/plugins/snippets/js.xml</code></p>
  <p>In the end, it forcefully removes the Git repository.</p>
  <p><strong>The command:</strong></p>
  <pre><code>gnome-terminal -x sudo git clone git://github.com/pererinha/gedit-snippet-jquery.git &amp;&amp; sudo cp -f gedit-snippet-jquery/js.xml /usr/share/gedit/plugins/snippets/js.xml &amp;&amp; sudo rm -rf gedit-snippet-jquery
  </code></pre>
  <p>It works fine in my terminal.</p>
  <p><em>But,</em> via the GUI it just opens, I add my password, press enter, and then it closes again.</p>
  <p>I'd like to only run the command to the first <code>&amp;&amp;</code></p>
  <p><strong>This is my Python function (with command):</strong></p>
  <pre><code>def on_install_jquery_code_snippet_for_gedit_activate(self, widget):
      &quot;&quot;&quot; Install Jquery code snippet for Gedit. &quot;&quot;&quot;
      cmd=&quot;gnome-terminal -x sudo git clone git://github.com/pererinha/gedit-snippet-jquery.git &amp;&amp; sudo cp -f gedit-snippet-jquery/js.xml /usr/share/gedit/plugins/snippets/js.xml &amp;&amp; sudo rm -rf gedit-snippet-jquery&quot;
      p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT,
               close_fds=False)
      self.status.set_text(p.stdout.read()) #show response in 'status
  </code></pre>