[hamster-applet] menu shortcut and added "gnome-time-tracker" alias for improved discovery (hamster-standalone stays



commit ac76a8436fc8a0ffc8ebdf13eee93493c394c789
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sat Jan 23 16:37:00 2010 +0000

    menu shortcut and added "gnome-time-tracker" alias for improved discovery (hamster-standalone stays too)

 configure.ac                      |    3 +++
 data/.gitignore                   |    3 ++-
 data/Makefile.am                  |   11 +++++++++++
 data/hamster-applet.desktop.in.in |   10 ++++++++++
 src/Makefile.am                   |    8 +++++---
 src/gnome-time-tracker            |    1 +
 6 files changed, 32 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 53cb770..c6d3539 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,6 +59,8 @@ AC_SUBST(LIBDIR)
 AS_AC_EXPAND(PYEXECDIR, $pyexecdir)
 AC_SUBST(PYEXECDIR)
 
+AS_AC_EXPAND(BINDIR, $bindir)
+
 dnl ****************************************************************************
 dnl * PyGTK & co for Gnome Streamer
 dnl ****************************************************************************
@@ -171,6 +173,7 @@ data/art/Makefile
 po/Makefile.in
 ])
 AC_OUTPUT(
+data/hamster-applet.desktop.in
 src/hamster/Makefile
 src/hamster/widgets/Makefile
 help/Makefile
diff --git a/data/.gitignore b/data/.gitignore
index d260127..cae78d2 100644
--- a/data/.gitignore
+++ b/data/.gitignore
@@ -1,3 +1,4 @@
 Hamster_Applet.server
 Hamster_Applet.server.in
-hamster-applet.schemas
+hamster-applet.desktop
+hamster-applet.desktop.in
diff --git a/data/Makefile.am b/data/Makefile.am
index f8f8a9f..fac0006 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -7,6 +7,14 @@ serverdir = $(libdir)/bonobo/servers
 server_in_files = Hamster_Applet.server.in
 server_DATA = $(server_in_files:.server.in=.server)
 
+################################################################################
+# Desktop file
+################################################################################
+desktopdir = $(datadir)/applications
+desktop_in_files = hamster-applet.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
+ INTLTOOL_DESKTOP_RULE@
 
 # ******************************************************************************
 # Misc data
@@ -48,4 +56,7 @@ DISTCLEANFILES = \
 EXTRA_DIST = \
 	$(xml_in_files) \
 	Hamster_Applet.server.in.in \
+	hamster-applet.desktop.in.in \
 	$(resources_DATA)
+
+CLEANFILES = hamster-applet.desktop
diff --git a/data/hamster-applet.desktop.in.in b/data/hamster-applet.desktop.in.in
new file mode 100644
index 0000000..8a60815
--- /dev/null
+++ b/data/hamster-applet.desktop.in.in
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+_Name=Time Tracker
+_GenericName=Time Tracker
+_Comment=Project Hamster desktop time tracking
+Icon=hamster-applet
+Exec= BINDIR@/gnome-time-tracker
+Categories=GNOME;GTK;Utility;
diff --git a/src/Makefile.am b/src/Makefile.am
index 5844cf7..3d12240 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -13,7 +13,8 @@ hamsterlib_SCRIPTS = hamster-applet
 
 hamsterbindir = $(bindir)
 hamsterbin_SCRIPTS = \
-	hamster-standalone
+	hamster-standalone \
+	gnome-time-tracker
 
 BUILT_SOURCES = \
 	hamster-applet
@@ -25,5 +26,6 @@ DISTCLEANFILES = \
 	$(CLEANFILES)
 
 EXTRA_DIST = \
-	hamster-applet.py
-	hamster-standalone
+	hamster-applet.py \
+	hamster-standalone \
+	gnome-time-tracker
diff --git a/src/gnome-time-tracker b/src/gnome-time-tracker
new file mode 120000
index 0000000..e13df56
--- /dev/null
+++ b/src/gnome-time-tracker
@@ -0,0 +1 @@
+hamster-standalone
\ No newline at end of file



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