How to have script detect if terminal emulator is running in a desktop session or not? – askubuntu.com

I have scripts I run that write out a text file, then open it in an editor. If I open a terminal emulator window in my desktop session and run the script, I'd like the editor to be a graphical one ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to have script detect if terminal emulator is running in a desktop session or not? – askubuntu.com"