Hello there !
We have a first program mysnap.launcher who is lauching my other mysnap.app with the current command (in a cpp code) :
int errCode = system(“snapctl start mysnapp.app”);
This works like a charm, and we are quite happy about it
But now we want to do add an argument
int errCode = system(“snapctl start mysnap.app --my-option”);
This does not work, is passing an arg when starting a snap supported ?
Btw is there somewhere with a snapctl doc? snapctl -h does not have much options, we found somewhere on internet that we could do something like
snapctl run mysnapp.app --my-option
And it works, but does seem to be run in the current shell launched and not handled by the “snap management” layer
Any hints about this ? Or are we missing something? Is there a better solution to simply pass an arg when launching a snap from a snap ?