Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3556

Python • How Do I Open Audacity With Python?

$
0
0
I'm trying to find a way to open Audacity with python. I tried using subprocess.call but it just pulled up this: "This text file 'Audacity' seems to be an executable script. What do you want to do with it?" The options were: Execute, Execute in Terminal, Open, and the last option was Cancel. How do I make this not occur?
Here is my code:

Code:

import subprocesssubprocess.call(('xdg-open', '/home/pi/raspberrypi/.local/share/applications/audacity.desktop'))
What should I try?

Statistics: Posted by Henrik Gill — Sun Mar 17, 2024 5:45 pm



Viewing all articles
Browse latest Browse all 3556

Trending Articles