I wrote a command-line utility and I want to develop a GUI for it. I saw that almost every tool on linux comes command-line, and it eventually has a GUI which interacts with the command line utility making life easier for those who aren't familiar with command-line.
I want to do something similar, what is the standard in linux to do so?
I thought of two possible solutions:
- Create a GUI that simply spawns command-line utility processes, with some arguments to do the required task and wait for it to finish and update the GUI with the results
- Implement some kind of server in the command line utility that the GUI can use to gather informations and display them to the user
Is there a standard in linux for linking GUIs to command line utilities?
If yes, what is it?