diff options
author | Patrick Griffis <tingping@tingping.se> | 2016-03-31 06:58:03 -0400 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-03-31 07:02:23 -0400 |
commit | b7373f4ddc88c1aab1ad2aa2a615d1832d71a330 (patch) | |
tree | 574def3fcc88833392afb9891dd1dca01e809ee6 /data | |
parent | 9402a311119b55eca0506b8b7a2f27e97b318e48 (diff) |
unix: Open urls in existing instance if supported
Diffstat (limited to 'data')
-rw-r--r-- | data/misc/Makefile.am | 13 | ||||
-rw-r--r-- | data/misc/hexchat.desktop.in.in (renamed from data/misc/hexchat.desktop.in) | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/data/misc/Makefile.am b/data/misc/Makefile.am index 48805ba3..e40c4ba9 100644 --- a/data/misc/Makefile.am +++ b/data/misc/Makefile.am @@ -3,6 +3,15 @@ appdata_DATA = $(appdata_in_files:.xml.in=.xml) appdatadir = $(datadir)/appdata @INTLTOOL_XML_RULE@ +if USE_DBUS +exec_command = 'hexchat --existing %U' +else +exec_command = 'hexchat %U' +endif + +hexchat.desktop.in: hexchat.desktop.in.in + $(AM_V_GEN)sed -e s!\@exec_command\@!$(exec_command)! < $< > $@ + data_desktopdir = $(datadir)/applications data_desktop_in_files = hexchat.desktop.in @@ -26,6 +35,6 @@ uninstall-hook: $(UPDATE_MIME_DATABASE); $(UPDATE_DESKTOP_DATABASE); -EXTRA_DIST = hexchat.appdata.xml.in hexchat.desktop.in htm.desktop.in htm-mime.xml +EXTRA_DIST = hexchat.appdata.xml.in hexchat.desktop.in.in htm.desktop.in htm-mime.xml -CLEANFILES = $(appdata_DATA) $(data_desktop_DATA) +CLEANFILES = $(appdata_DATA) $(data_desktop_DATA) hexchat.desktop.in diff --git a/data/misc/hexchat.desktop.in b/data/misc/hexchat.desktop.in.in index bca42665..a778e9b5 100644 --- a/data/misc/hexchat.desktop.in +++ b/data/misc/hexchat.desktop.in.in @@ -3,7 +3,7 @@ _Name=HexChat _GenericName=IRC Client _Comment=Chat with other people online _Keywords=IM;Chat; -Exec=hexchat %U +Exec=@exec_command@ Icon=hexchat Terminal=false Type=Application |