From: Jaroslav Kysela Date: Wed, 15 Nov 2017 10:09:04 +0000 (+0100) Subject: envy24control: add .desktop and icon files X-Git-Tag: v1.1.6~4 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=39a388e01b15c7a9d420c31bc946e6ec23d4fbe3;p=alsa-tools.git envy24control: add .desktop and icon files Signed-off-by: Jaroslav Kysela --- diff --git a/.gitignore b/.gitignore index 57c5d65..e72c2e5 100644 --- a/.gitignore +++ b/.gitignore @@ -46,8 +46,10 @@ as10k1/configure echomixer/echomixer echomixer/Makefile echomixer/configure +echomixer/desktop/Makefile envy24control/Makefile envy24control/configure +envy24control/desktop/Makefile hdspconf/Makefile hdspconf/configure hdspconf/src/hdspconf diff --git a/envy24control/Makefile.am b/envy24control/Makefile.am index aaa50ee..72ced31 100644 --- a/envy24control/Makefile.am +++ b/envy24control/Makefile.am @@ -1,3 +1,4 @@ +SUBDIRS = desktop AM_CFLAGS = @ENVY24CONTROL_CFLAGS@ bin_PROGRAMS = envy24control man_MANS = envy24control.1 diff --git a/envy24control/configure.ac b/envy24control/configure.ac index 08dcdd8..776f290 100644 --- a/envy24control/configure.ac +++ b/envy24control/configure.ac @@ -7,4 +7,4 @@ AM_MAINTAINER_MODE([enable]) PKG_CHECK_MODULES(ENVY24CONTROL, gtk+-2.0 alsa >= 0.9.0) -AC_OUTPUT(Makefile) +AC_OUTPUT(Makefile desktop/Makefile) diff --git a/envy24control/desktop/Makefile.am b/envy24control/desktop/Makefile.am new file mode 100644 index 0000000..0a6d6ca --- /dev/null +++ b/envy24control/desktop/Makefile.am @@ -0,0 +1,34 @@ +APPNAME = envy24control + +desktopdir = $(datadir)/applications +desktop_DATA = $(APPNAME).desktop + +public_icons = \ + hicolor_apps_48x48_$(APPNAME).png + +EXTRA_DIST = \ + $(public_icons) \ + $(desktop_DATA) + +install-icons: + for icon in $(public_icons); do \ + THEME=`echo $$icon | cut -d_ -f1`; \ + CONTEXT=`echo $$icon | cut -d_ -f2`; \ + SIZE=`echo $$icon | cut -d_ -f3`; \ + ICONFILE=`echo $$icon | cut -d_ -f4`; \ + mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \ + $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \ + done + +uninstall-icons: + -for icon in $(public_icons); do \ + THEME=`echo $$icon | cut -d_ -f1`; \ + CONTEXT=`echo $$icon | cut -d_ -f2`; \ + SIZE=`echo $$icon | cut -d_ -f3`; \ + ICONFILE=`echo $$icon | cut -d_ -f4`; \ + rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \ + done + +install-data-local: install-icons + +uninstall-local: uninstall-icons diff --git a/envy24control/desktop/envy24control.desktop b/envy24control/desktop/envy24control.desktop new file mode 100644 index 0000000..391c647 --- /dev/null +++ b/envy24control/desktop/envy24control.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=Envy24 Control +GenericName=Envy24 Control Utility +Comment=Mixer and GUI control utility for Envy24-based sound cards +Exec=envy24control +Icon=envy24control +Terminal=false +Type=Application +Categories=AudioVideo; +Version=0.9.4 diff --git a/envy24control/desktop/hicolor_apps_48x48_envy24control.png b/envy24control/desktop/hicolor_apps_48x48_envy24control.png new file mode 100644 index 0000000..73c47d6 Binary files /dev/null and b/envy24control/desktop/hicolor_apps_48x48_envy24control.png differ