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:
parent
e07f2ad1ed
commit
6783c2ce63
15 changed files with 168 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
15
desktop/geary-autostart.desktop.in
Normal file
15
desktop/geary-autostart.desktop.in
Normal 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
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue