gui that allows cmdline executions
Posted: 22 Oct 2020, 13:31
My app is a commandline application with a GUI for its settings.
If you run the program without parameters it opens the GUI.
But if you run it with parameters, it runs the script without any GUI.
I have the script set to look for commandline parameters and if there are none, it will launch the GUI, if not, it will run it's sequence and then exit.
Well, that's what is supposed to happen.
What happens is, if the GUI is open, the second instance kills the first one.
If I turn #SingleInstance to off, then it lets the user open multiple options GUIs which I don't want.
Here's what I want:
1. Be able to run the GUI instance and commandline instances at the same time.
2. Not be able to open two GUIs.
3. Have the commandline instances to not kill the GUI instance.
Maybe if there was a way to detect a previously running instance of the application?
If you run the program without parameters it opens the GUI.
But if you run it with parameters, it runs the script without any GUI.
I have the script set to look for commandline parameters and if there are none, it will launch the GUI, if not, it will run it's sequence and then exit.
Well, that's what is supposed to happen.
What happens is, if the GUI is open, the second instance kills the first one.
If I turn #SingleInstance to off, then it lets the user open multiple options GUIs which I don't want.
Here's what I want:
1. Be able to run the GUI instance and commandline instances at the same time.
2. Not be able to open two GUIs.
3. Have the commandline instances to not kill the GUI instance.
Maybe if there was a way to detect a previously running instance of the application?