Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Cameron Simpson
On 26Sep2017 04:48, Kryptxy wrote: Here - p = subprocess.Popen(["transmission-gtk", link], stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, error = p.communicate() Peter> That"s the problem. communicate() *must* block to collect the program"s Peter> entire

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Kryptxy via Python-list
> Original Message > Subject: Re: Running a GUI program haults the calling program (linux) > Local Time: 26 September 2017 1:26 PM > UTC Time: 26 September 2017 07:56 > From: __pete...@web.de > To: python-list@python.org > > Kryptxy via Pyth

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Peter Otten
Kryptxy via Python-list wrote: > Sent with [ProtonMail](https://protonmail.com) Secure Email. > >> Original Message >> Subject: Re: Running a GUI program haults the calling program (linux) >> Local Time: 26 September 2017 12:09 PM >> UTC Time: 26 S

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Cameron Simpson
On 25Sep2017 20:38, Kryptxy wrote: I want to run a GUI program (transmission-gtk) from python. This is what I do: import subprocess subprocess.Popen(['transmission-gtk', link], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Where `link` is some magnetic link. This

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Kryptxy via Python-list
Sent with [ProtonMail](https://protonmail.com) Secure Email. > Original Message > Subject: Re: Running a GUI program haults the calling program (linux) > Local Time: 26 September 2017 12:09 PM > UTC Time: 26 September 2017 06:39 > From: c...@cskk.id.au >

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Kryptxy via Python-list
Sent with [ProtonMail](https://protonmail.com) Secure Email. > Original Message > Subject: Re: Running a GUI program haults the calling program (linux) > Local Time: 26 September 2017 6:20 AM > UTC Time: 26 September 2017 00:50 > From: ros...@gmail.com > To: p

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Cameron Simpson
On 25Sep2017 20:59, Michael Torrie wrote: On 09/25/2017 06:38 PM, Kryptxy via Python-list wrote: Is there any way that the GUI program is opened, and immediately the control returns to calling program, instead of keeping the terminal busy? Yes. This is a classic situation

Re: Running a GUI program haults the calling program (linux)

2017-09-25 Thread Michael Torrie
On 09/25/2017 06:38 PM, Kryptxy via Python-list wrote: > Is there any way that the GUI program is opened, and immediately the > control returns to calling program, instead of keeping the terminal > busy? Yes. This is a classic situation where you want to first fork() the process, then exec() the

Re: Running a GUI program haults the calling program (linux)

2017-09-25 Thread Chris Angelico
On Tue, Sep 26, 2017 at 10:38 AM, Kryptxy via Python-list wrote: > I want to run a GUI program (transmission-gtk) from python. This is what I do: > > import subprocess > subprocess.Popen(['transmission-gtk', link], stdout=subprocess.PIPE, > stderr=subprocess.PIPE) > >

Running a GUI program haults the calling program (linux)

2017-09-25 Thread Kryptxy via Python-list
I want to run a GUI program (transmission-gtk) from python. This is what I do: import subprocess subprocess.Popen(['transmission-gtk', link], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Where `link` is some magnetic link. This command opens transmission-gtk, but it haults the calling