GNOME Bugzilla – Bug 789679
Always watch for new mail pref not working under Flatpak
Last modified: 2019-10-24 04:16:52 UTC
As reported in Flathub issue #3: https://github.com/flathub/org.gnome.Geary/issues/3 See also Flatpak issue #118: https://github.com/flatpak/flatpak/issues/118
Part 1 of this is to simply add "--filesystem=xdg-config/autostart:create" to the finish args in the org.gnome.Geary.json builder manifest to work around Flatpak issue #118. The second part however is more complex in that the Exec key in the autostart would need to be updated to match Flatpak's munging of same for the main desktop file. E.g. "Exec=geary" updated to "Exec=flatpak run ... org.gnome.Geary". I don't know if that can be reliably done without some support for it getting built into Flatpak, however. An alternative would be to copy the actual main desktop file and munge the Exec line there at runtime to further to add a "--hidden" at the end, but that's also pretty hacky. Another alternative would be to copy the actual main desktop file as-is and use some magic to work out if we should show the main window or not, or use dbus activation, or... something?
Actually, not that bad. Renaming the autostart desktop file prefix makes it get picked up by flatpak build-export, which munges Exec for us. Fix coming up soon.
Actually, after discussion in Bug 742244 and on the mailing list, Geary will probably stop managing the autostart file in favour of letting users use their existing desktop tools to do so, which will obsolete this issue.
Bumping this until we work out what to do about Bug 792406.
Closing this in favour of https://gitlab.gnome.org/GNOME/geary/issues/562