[Gambas-user] Finding if app is launched from terminal or not
Bruce Steers
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.
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210629/de5ad01b/attachment.htm>
More information about the User
mailing list