Starting in the background using Portals
David Strauss
david at davidstrauss.net
Wed Jun 12 21:19:06 UTC 2019
I'm working on a Flatpak app that provides lightweight system information
to an IT reporting API. I've been using Builder 3.32.3 and Python 3.7.3 on
Fedora 30 Silverblue.
I would like this behavior:
- Starts in background at startup (after login), allowing it to collect
data and upload reports
- If the user goes into GNOME Activities and chooses the app, the GUI
should open
How would I best go about doing this? I'm aware of
org.freedesktop.impl.portal.Background.xml, but I'm not sure where to start
in terms of using it. I'm very new to building apps using Flatpak.
Specifically, I'm looking for advice based on starting with the Builder
template for a Python GUI Flatpak app.
I'm also looking for advice on the best way to manage app preferences (just
some strings). Presumably, there's something I can do that eventually maps
to GSettings/DConf, but I may be looking in the wrong places. I'm happy to
use whatever is the best practice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20190612/ddfee582/attachment.html>
More information about the Flatpak
mailing list