[gnome-contacts] Add an desktop file



commit 9ac85db9ca9a7830907ec4469c0c502d25fe7eba
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 20 19:29:54 2011 -0400

    Add an desktop file
    
    This has come up in Fedora package review, so better to get
    started on it. Jimmac has promised a real icon coming soon.

 data/Makefile.am                  |   16 +++++++++++++---
 data/gnome-contacts.desktop.in.in |    9 +++++++++
 po/POTFILES.in                    |    1 +
 po/POTFILES.skip                  |    1 +
 4 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 8a09023..762b511 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,11 +1,21 @@
 NULL=
 
-nautilusdatadir = $(datadir)/gnome-contacts
+pkgdatadir = $(datadir)/gnome-contacts
 
-nautilusdata_DATA = \
+pkgdata_DATA = \
 	gnome-contacts.css			\
 	$(NULL)
 
+desktopdir = $(datadir)/applications
+desktop_in_files = gnome-contacts.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+ INTLTOOL_DESKTOP_RULE@
+
 EXTRA_DIST = \
-	$(nautilusdata_DATA)	\
+	$(pkgdata_DATA)	\
+	gnome-contacts.desktop.in.in	\
 	$(NULL)
+
+DISTCLEANFILES = \
+	gnome-contacts.desktop \
+	gnome-contacts.desktop.in
diff --git a/data/gnome-contacts.desktop.in.in b/data/gnome-contacts.desktop.in.in
new file mode 100644
index 0000000..72294b7
--- /dev/null
+++ b/data/gnome-contacts.desktop.in.in
@@ -0,0 +1,9 @@
+[Desktop Entry]
+_Name=Contacts
+Icon=avatar-default
+Exec=gnome-contacts
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=GNOME;GTK;System;
+OnlyShowIn=GNOME;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ff517ff..56e031e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,3 +1,4 @@
+data/gnome-contacts.desktop.in.in
 src/contacts-app.vala
 src/contacts-contact.vala
 src/contacts-contact-pane.vala
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index ef2adbe..4553046 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -1,3 +1,4 @@
+data/gnome-contacts.desktop.in
 src/main.c
 src/contacts-app.c
 src/contacts-contact-pane.c



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