diff options
author | Stefan Kost <ensonic@users.sf.net> | 2011-01-18 09:45:54 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2011-01-18 09:50:46 +0200 |
commit | 1cf799da4dd99e336b89e62a41f024b70dd5f076 (patch) | |
tree | 88f54ca8455528e4887e496045760f24879a14a0 | |
parent | 6219cbce60dc9e11e144de56a1ca4c08d3c5af47 (diff) |
desktop: add desktop file
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | src/ui/Makefile.am | 17 | ||||
-rw-r--r-- | src/ui/gsttlui.c | 1 | ||||
-rw-r--r-- | src/ui/gsttlui.desktop | 8 |
4 files changed, 27 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index f829034..be54c14 100644 --- a/configure.ac +++ b/configure.ac @@ -58,7 +58,7 @@ PKG_CHECK_MODULES(BASE_DEPS, \ AC_SUBST(BASE_DEPS_LIBS) AC_SUBST(BASE_DEPS_CFLAGS) -# libcgraph >= 2.20.0 +# libcgraph >= 2.20.0 PKG_CHECK_MODULES(UI_DEPS, \ glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0 gtk+-2.0 >= 2.10.0 \ libgvc >= 2.20.0 goocanvas >= 0.13, \ @@ -68,6 +68,9 @@ PKG_CHECK_MODULES(UI_DEPS, \ AC_SUBST(UI_DEPS_LIBS) AC_SUBST(UI_DEPS_CFLAGS) +dnl check for desktop utilities +AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database) + AC_CONFIG_FILES( Makefile \ diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am index ca43134..40670b5 100644 --- a/src/ui/Makefile.am +++ b/src/ui/Makefile.am @@ -10,8 +10,19 @@ gsttlui_CFLAGS = $(UI_DEPS_CFLAGS) \ gsttlui_LDADD = $(UI_DEPS_LIBS) -pixmapsdir=$(pkgdatadir)/ui/icons -pixmaps_DATA=gsttlui.png +pixmapsdir = $(pkgdatadir)/ui/icons +pixmaps_DATA = gsttlui.png -EXTRA_DIST = gsttlui.png +iconsdir = $(datadir)/pixmaps/ +icons_DATA = gsttlui.png + +desktopdir = $(datadir)/applications/ +desktop_DATA = gsttlui.desktop + +install-data-hook: + test -z "$(UPDATE_DESKTOP_DATABASE)" || $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"; +uninstall-local: + test -z "$(UPDATE_DESKTOP_DATABASE)" || $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"; + +EXTRA_DIST = gsttlui.png gsttlui.desktop diff --git a/src/ui/gsttlui.c b/src/ui/gsttlui.c index 010204d..b019eb6 100644 --- a/src/ui/gsttlui.c +++ b/src/ui/gsttlui.c @@ -120,6 +120,7 @@ main (gint argc, gchar *argv[]) log_file_name = g_strdup (argv[1]); } + /* FIXME: remove, once we have a "open file/socket" menu item */ if(!log_file_name && !log_port_num) { fprintf (stderr, "neither log-file nor log-port set.\n"); goto Done; diff --git a/src/ui/gsttlui.desktop b/src/ui/gsttlui.desktop new file mode 100644 index 0000000..fcb8bc8 --- /dev/null +++ b/src/ui/gsttlui.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=GStreamer Tracelib UI +Comment=Visualize GStreamer pipelines +StartupNotify=true +Exec=gsttlui +Icon=gsttlui +Type=Application +Categories=GNOME;GTK;Development |