Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197149

subprocess.Popen does not launch audacity

From Tim Johnson <thjmmj15@gmail.com>
Newsgroups comp.lang.python
Subject subprocess.Popen does not launch audacity
Date 2025-01-10 10:15 -0900
Message-ID <mailman.56.1736536555.2912.python-list@python.org> (permalink)
References <735b7965-c16c-45a7-a2b8-d9ff1adc21ba@gmail.com>

Show all headers | View raw


Using Python 3.12.3 on Ubuntu 24.04

I've converted a legacy python2 script to python3. All went well. 
However, a glitch from python2 remains.

The script uses dmenu to create menus to pick applications. Applications 
are then invoked from python

using subprocess.Popen(). I have never been able to successfully launch 
audacity using this approach,

which does work for other apps.

I can launch audacity successfully using dmenu_run (on its own, outside 
of the script)

Below is the pertinent code:

  Popen(choice, stdout=PIPE, stderr=PIPE,
                   stdin=PIPE, close_fds=True)

My guess is my argument list is either insufficient or an argument is 
causing the problem, but am unsure of which.

I have been retired from python programming for ten years, and am pretty 
rusty, but it is still fun. There are plenty

of other ways to successfully launch audacity but it would be great to 
make it work from this script.

Thanks in advance

Tim

Back to comp.lang.python | Previous | NextNext in thread | Find similar


Thread

subprocess.Popen does not launch audacity Tim Johnson <thjmmj15@gmail.com> - 2025-01-10 10:15 -0900
  Re: subprocess.Popen does not launch audacity Gilmeh Serda <gilmeh.serda@nothing.here.invalid> - 2025-01-10 21:46 +0000

csiph-web