AyatanaIndicators / ayatana-webmail

Webmail notifications and actions for any desktop
GNU General Public License v3.0
8 stars 4 forks source link

Don't launch settings dialog when initially used. #18

Open sunweaver opened 3 years ago

sunweaver commented 3 years ago

When installing ayatana-webmail as part of a desktop environment, we want it to be auto-started.

But we (as distro maintainers) maybe don't want the settings dialog to pop up after every login as long as ayatana-webmail doesn't have any configured IMAP profiles.

We need a way to disable the settings dialog for unconfigured ayatana-webmail instances / profiles.

tari01 commented 3 years ago

The problem with this is that ayatana-webmail does not nave a launcher. Non-technical/novice users will hardly know how to start it. If we push a dialog into people's faces on each login, they will most likely get it over with and move on. Not subtle, but a good reminder (Robert thinks).

tari01 commented 3 years ago

Update: Now I remember two more reasons I made the settings dialog so persistent:

1. Launcher

In case you already have this one, invoking any of these options will crash an unconfigured ayatana-webmail over DBus, and you won't even know about it.

2.

Because everything happens over DBus, the application can only go into its main loop after the settings have been read. I cannot pause it and wait for the settings command to be invoked over the bus, because we are not on the bust yet. The dialog that you see after login is invoked directly from the application class, not via the bus, and if therefore 100% bulletproof.