Start notifying of new mail at session startup: Bug #714644

Geary can now be configured to notify of new mail at startup.  When
the user logs in, Geary will autostart with a hidden window and
notify of new mail as usual.  When Geary is formally executed by
the user the Geary window simply appears.

In this mode, if the user closes the window Geary will return to its
hidden state.  Quit must be used to close the process.
This commit is contained in:
Mohamed Ibrahim 2014-06-26 13:31:43 -07:00 committed by Jim Nelson
parent e07f2ad1ed
commit 6783c2ce63
15 changed files with 168 additions and 2 deletions

View file

@ -8,10 +8,12 @@ include (FindIntltool)
include (FindDesktopFileValidate)
if (INTLTOOL_MERGE_FOUND)
INTLTOOL_MERGE_DESKTOP (geary po)
INTLTOOL_MERGE_AUTOSTART_DESKTOP (geary-autostart po)
if (DESKTOP_VALIDATE)
if (DESKTOP_FILE_VALIDATE_FOUND)
VALIDATE_DESKTOP_FILE (geary)
VALIDATE_DESKTOP_FILE (geary-autostart)
else (DESKTOP_FILE_VALIDATE_FOUND)
message (FATAL_ERROR "desktop-file-validate must be installed to validate generated .desktop file")
endif (DESKTOP_FILE_VALIDATE_FOUND)

View file

@ -0,0 +1,15 @@
[Desktop Entry]
_Name=Geary
_GenericName=Mail Client
_X-GNOME-FullName=Geary Mail
_Comment=Send and receive email
_Keywords=Email;E-mail;Mail;
Icon=geary
TryExec=geary
Exec=geary --hidden
Type=Application
Terminal=false
Categories=GNOME;GTK;Network;Email;
MimeType=x-scheme-handler/mailto;
StartupNotify=true
NoDisplay=true

View file

@ -59,6 +59,11 @@
<summary>show notifications for new mail</summary>
<description>True to show notification bubbles.</description>
</key>
<key name="startup-notifications" type="b">
<default>false</default>
<summary>notify of new mail at startup</summary>
<description>True to notify of new mail at startup.</description>
</key>
<key name="ask-open-attachment" type="b">
<default>true</default>
<summary>ask when opening an attachment</summary>