[gnome-shell] calendar-server: Add .desktop file for evolution calendar



commit 20769f68a7b2fe4c43fcdfcce070d42f7ce5443c
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Jul 3 23:48:57 2012 +0200

    calendar-server: Add .desktop file for evolution calendar
    
    When selecting "Open Calendar" in the date menu, the configured
    application is launched via command line, so we don't get any
    startup notification. In order to fix the issue at least for our
    default calendar, add a hidden .desktop file for evolution's
    calendar component.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677907

 .gitignore                                         |    2 ++
 configure.ac                                       |    1 +
 po/POTFILES.in                                     |    1 +
 po/POTFILES.skip                                   |    1 +
 src/Makefile-calendar-server.am                    |    9 +++++++++
 .../evolution-calendar.desktop.in.in               |    7 +++++++
 6 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b75e3b9..1d9aeff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,6 +62,8 @@ src/*-enum-types.[ch]
 src/*-marshal.[ch]
 src/Makefile
 src/Makefile.in
+src/calendar-server/evolution-calendar.desktop
+src/calendar-server/evolution-calendar.desktop.in
 src/calendar-server/org.gnome.Shell.CalendarServer.service
 src/gnome-shell
 src/gnome-shell-calendar-server
diff --git a/configure.ac b/configure.ac
index d5875f9..7ab5976 100644
--- a/configure.ac
+++ b/configure.ac
@@ -249,6 +249,7 @@ AC_CONFIG_FILES([
   docs/reference/st/Makefile
   docs/reference/st/st-docs.sgml
   js/Makefile
+  src/calendar-server/evolution-calendar.desktop.in
   src/Makefile
   browser-plugin/Makefile
   tests/Makefile
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5f68020..25b8e31 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -41,6 +41,7 @@ js/ui/userMenu.js
 js/ui/viewSelector.js
 js/ui/wanda.js
 js/ui/windowAttentionHandler.js
+src/calendar-server/evolution-calendar.desktop.in.in
 src/gvc/gvc-mixer-control.c
 src/main.c
 src/shell-app.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index fe31eda..1677f82 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,3 +1,4 @@
 data/gnome-shell.desktop.in
 data/gnome-shell-extension-prefs.desktop.in
 data/org.gnome.shell.evolution.calendar.gschema.xml.in
+src/calendar-server/evolution-calendar.desktop.in
diff --git a/src/Makefile-calendar-server.am b/src/Makefile-calendar-server.am
index cf45b64..bad727e 100644
--- a/src/Makefile-calendar-server.am
+++ b/src/Makefile-calendar-server.am
@@ -8,6 +8,12 @@ gnome_shell_calendar_server_SOURCES =								\
 	calendar-server/gnome-shell-calendar-server.c						\
 	$(NULL)
 
+desktopdir=$(datadir)/applications
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+desktop_in_files = calendar-server/evolution-calendar.desktop.in
+
+ INTLTOOL_DESKTOP_RULE@
+
 gnome_shell_calendar_server_CFLAGS =		\
 	-I$(top_srcdir)/src			\
 	-DPREFIX=\""$(prefix)"\"		\
@@ -26,3 +32,6 @@ EXTRA_DIST += 							  \
 	calendar-server/README					  \
 	calendar-server/org.gnome.Shell.CalendarServer.service.in \
 	$(NULL)
+
+CLEANFILES = \
+	$(desktop_DATA)
diff --git a/src/calendar-server/evolution-calendar.desktop.in.in b/src/calendar-server/evolution-calendar.desktop.in.in
new file mode 100644
index 0000000..4ce0bda
--- /dev/null
+++ b/src/calendar-server/evolution-calendar.desktop.in.in
@@ -0,0 +1,7 @@
+[Desktop Entry]
+_Name=Evolution Calendar
+Exec=evolution -c calendar
+Icon=evolution
+NoDisplay=true
+Type=Application
+StartupNotify=true



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]