Add applications .desktop file for gtk
authorJosé Dapena Paz <jdapena@igalia.com>
Fri, 18 Dec 2009 13:34:59 +0000 (14:34 +0100)
committerJosé Dapena Paz <jdapena@igalia.com>
Fri, 18 Dec 2009 13:36:05 +0000 (14:36 +0100)
configure.ac
src/gtk/Makefile.am
src/gtk/modest.desktop [new file with mode: 0644]

index 1e2f5f6..d3bb200 100644 (file)
@@ -493,7 +493,9 @@ if test "x$with_platform" == "xmaemo"; then
    AC_SUBST(icon_scalabledir)
    AC_SUBST(pluginlibdir)
    AC_SUBST(plugindesktopentrydir)
-
+else
+   desktopentrydir=$datadir/applications   
+   AC_SUBST(desktopentrydir)
 fi
 
 dnl --------------- TESTING -------------------
index ba21269..f4dd362 100644 (file)
@@ -53,3 +53,7 @@ libmodest_ui_la_LIBADD = \
        $(MODEST_TOOLKIT_LIBS) \
        $(MODEST_WPEDITOR_LIBS)
 
+desktopentry_DATA   = modest.desktop
+
+EXTRA_DIST=\
+       *(desktopentry_DATA)
diff --git a/src/gtk/modest.desktop b/src/gtk/modest.desktop
new file mode 100644 (file)
index 0000000..1ceade3
--- /dev/null
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=modest
+GenericName=Email
+Comment=E-mail client
+Exec=modest -s %U
+Terminal=false
+Type=Application
+StartupNotify=true
+MimeType=message/rfc822;
+Icon=stock_mail
+Categories=GNOME;GTK;Network;Email;
+X-Ubuntu-Gettext-Domain=modest