After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789679 - Always watch for new mail pref not working under Flatpak
Always watch for new mail pref not working under Flatpak
Status: RESOLVED OBSOLETE
Product: geary
Classification: Other
Component: client
master
Other Linux
: High normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
flatpak
Depends on: 742244 792406
Blocks:
 
 
Reported: 2017-10-31 02:10 UTC by Michael Gratton
Modified: 2019-10-24 04:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Gratton 2017-10-31 02:10:45 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
Comment 1 Michael Gratton 2017-10-31 04:31:24 UTC
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?
Comment 2 Michael Gratton 2017-10-31 05:14:06 UTC
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.
Comment 3 Michael Gratton 2018-01-10 08:09:01 UTC
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.
Comment 4 Michael Gratton 2018-01-27 03:03:13 UTC
Bumping this until we work out what to do about Bug 792406.
Comment 5 Michael Gratton 2019-10-24 04:16:52 UTC
Closing this in favour of https://gitlab.gnome.org/GNOME/geary/issues/562