[Gambas-user] Finding if app is launched from terminal or not
bsteers4 at gmail.com
Tue Jun 29 10:13:06 CEST 2021
Hi all, I have an app that uses lame to make mp3s from wav files and lame
puts info out to stdout as it works.
It's primary use is going to be either drag-n-drop files onto a launcher or
right clicking files and choosing open with app.
Both those cases will not have a terminal so the app opens up it's own
terminalview form and runs the command in it.
but the app could also be run from terminal in which case it would not need
the terminalview and could just output to stdout.
But i do not know of a good way to detect if the app has been run from a
terminal or i need to open it's own one.
Any advice appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User