First, what is the best / easiest way to determine if X11 works and if a python script is available.
parent process?
session leader?
X environment variables?
Others?
Secondly, I would like to have a utility (python script) to introduce gui if it is available, otherwise use a command line tool.
From the top of my head I thought about it
-main python script (determines if gui is available and runs the corresponding script)
-gui or command line python script runs
- use a common module to do the actual work.
I am very open to suggestions to simplify this.
user125959
source share