summaryrefslogtreecommitdiff
blob: 04aecb7ccf1148b33ac3975fedc6557879495692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/misc/desktops/xine.desktop.in	2017-12-28 17:34:15.000000000 +0100
+++ b/misc/desktops/xine.desktop.in	2018-10-03 18:53:23.909196224 +0200
@@ -6,5 +6,5 @@
 Icon=xine
 Terminal=false
 Type=Application
-Categories=Application;AudioVideo;Player;
-MimeType=
\ No newline at end of file
+Categories=AudioVideo;Player;
+MimeType=
\ No newline at end of file
--- a/misc/desktops/Makefile.am	2017-12-28 17:34:15.000000000 +0100
+++ b/misc/desktops/Makefile.am	2018-10-03 19:52:23.262534618 +0200
@@ -32,7 +32,7 @@
 if XINE_LIST
 xine.desktop: xine.desktop.in @XINE_LIST@
 	$(AM_V_GEN)cat $< > $@; \
-	@XINE_LIST@ | perl -ne 'print join(";",sort(split(";")))' >> $@; \
+	@XINE_LIST@ | perl -ne 'print join("\n",split(";"))' | sort -u | xargs | perl -ne 'print join(";",sort(split(" ")))' >> $@; \
 	echo ';$(INPUT_MIME_TYPES)' >> $@
 else
 XINE_MIME = $(if $(shell test "$(XINE_CONFIG)" = '' && echo y),$(shell pkg-config --variable=plugindir libxine),$(shell $(XINE_CONFIG) --plugindir))/mime.types