Multiple Instances of Executable

Hello. My programs works in two-ways depends on the CLI argument. The GUI is

clyp

and the watcher is running in background with

clyp watch

They communicate with UNIX Socket. They have same App IDs. When I run one of these, the other won’t start in Flatpak environment. I’m really stuck with this. Thank you.

So, the issue is that you can’t start two commands from the Flatpak manifest?

You could in theory write a short script that launches both commands and use that as the launch command in the manifest.

Though I think the best way would be to call the background portal from the UI program to request that the watch process is run in the background. That would ensure your second command could stay running independent of the UI.

I will look into both methods. Thank you.