Hi, I am currently developing a GTK4 python app with Gnome Builder. I am trying to pass command line arguments to the app during flatpak run.
How can I access these arguments within a flatpak? Is an additial finish-arg required?
Thanks in advace,
Stephan
Whatever arguments are passed to flatpak run after the app ID are passed on to the command specified in the manifest. You’ll have access to them in sys.argv just as you would outside of Flatpak.
flatpak run
command
sys.argv
This topic was automatically closed after 2 days. New replies are no longer allowed.