[sound-juicer] Use dbus application launching



commit 113e6422d28eeef043a5f81332028a2e49f883aa
Author: Phillip Wood <phillip wood dunelm org uk>
Date:   Thu Jan 26 11:14:33 2017 +0000

    Use dbus application launching
    
    Rename the desktop file and add DBusActivatable=true to use dbus to
    launch the program.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777785

 configure.ac                                       |    2 +-
 data/Makefile.am                                   |    4 ++--
 ...p.in.in => org.gnome.SoundJuicer.desktop.in.in} |    1 +
 po/POTFILES.in                                     |    2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 339a63f..0a65858 100644
--- a/configure.ac
+++ b/configure.ac
@@ -125,7 +125,7 @@ AC_SUBST([AM_LDFLAGS])
 AC_CONFIG_FILES([
 sound-juicer.spec
 Makefile
-data/sound-juicer.desktop.in
+data/org.gnome.SoundJuicer.desktop.in
 help/Makefile
 po/Makefile.in
 ])
diff --git a/data/Makefile.am b/data/Makefile.am
index bd8b545..3179a01 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,10 +1,10 @@
 appid=org.gnome.SoundJuicer
 desktopdir = $(datadir)/applications
-desktop_in_files = data/sound-juicer.desktop.in.in
+desktop_in_files = data/$(appid).desktop.in.in
 desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
 
 # Use a custom set of keywords to prevent the icon name from being translated
-$(desktop_DATA): data/sound-juicer.desktop.in
+$(desktop_DATA): data/$(appid).desktop.in
        $(AM_V_GEN)$(MSGFMT) --desktop --keyword= --keyword=Name             \
                --keyword=GenericName --keyword=Comment --keyword=Keywords   \
                --template $< -d $(top_srcdir)/po -o $@
diff --git a/data/sound-juicer.desktop.in.in b/data/org.gnome.SoundJuicer.desktop.in.in
similarity index 96%
rename from data/sound-juicer.desktop.in.in
rename to data/org.gnome.SoundJuicer.desktop.in.in
index e68074e..67172b8 100644
--- a/data/sound-juicer.desktop.in.in
+++ b/data/org.gnome.SoundJuicer.desktop.in.in
@@ -8,6 +8,7 @@ Exec=sound-juicer %u
 # Translators: Do NOT translate or transliterate this text (this is an icon file name)!
 Icon=sound-juicer
 StartupNotify=true
+DBusActivatable=true
 MimeType=x-content/audio-cdda;
 Terminal=false
 Type=Application
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a37dc2a..8214390 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,7 +1,7 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
 data/org.gnome.sound-juicer.gschema.xml
-data/sound-juicer.desktop.in.in
+data/org.gnome.SoundJuicer.desktop.in.in
 data/appdata/sound-juicer.appdata.xml.in
 data/sj-album-chooser-dialog.ui
 data/sound-juicer.ui


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