Flatseal icon indicating copy to clipboard operation
Flatseal copied to clipboard

Implement a --show-app CLI flag

Open heliguy4599 opened this issue 11 months ago • 2 comments

What this adds:

flatseal --show-app org.app.Name

  • Adds a new --show-app command-line flag, which takes a Flatpak's appID.
  • If the supplied ID matches an installed app, the UI will switch to showing that app.
  • If no match is found, nothing happens.
  • The flag can be invoked at startup of Flatseal, or while Flatseal is running, and will behave the same.

There is no way to show the Global section, however I can add this if it is desired. Also, I can change the behavior of a non-matching provided ID, if you'd like that to behave differently than doing nothing.

The new flag shows up in the default --help output, with a description.

I believe I have followed Flatseal's coding style to the best of my abilities, but I can always refine what I've added!

Why I think this should be added:

I believe it would be handy for Flatseal to be able to be opened to a specific application, to allow it to be called from other apps or scripts. I am the developer of Warehouse, and I would like to be able to launch Flatseal to a specific app via a button in the UI.

heliguy4599 avatar Jan 22 '25 20:01 heliguy4599

hey @heliguy4599 , I will take a look at this ASAP. Thanks.

tchx84 avatar Feb 01 '25 11:02 tchx84

Great to hear! You're welcome, and thank you for this wonderful app itself!

heliguy4599 avatar Feb 01 '25 19:02 heliguy4599

In case there's still interest, the idea would be for other apps to invoke this service similarly to how Flatseal invokes GNOME software today.

tchx84 avatar Jun 24 '25 21:06 tchx84

Superseded by https://github.com/tchx84/Flatseal/pull/799

tchx84 avatar Aug 30 '25 13:08 tchx84