Browse Source

Properly identify desktop files

This resolves a rather major glitch with Device Links noted on the mailing list
tags/r14.0.0
Timothy Pearson 4 years ago
parent
commit
6ddd04baca
3 changed files with 23 additions and 0 deletions
  1. 2
    0
      tdeio/CMakeLists.txt
  2. 5
    0
      tdeio/Makefile.am
  3. 16
    0
      tdeio/tdeio.magic

+ 2
- 0
tdeio/CMakeLists.txt View File

@@ -36,6 +36,8 @@ link_directories(
36 36
 
37 37
 ##### other data ################################
38 38
 
39
+install( FILES tdeio.magic DESTINATION ${CONFIG_INSTALL_DIR}/magic )
40
+
39 41
 install( FILES
40 42
     application.desktop kurifilterplugin.desktop
41 43
     kcomprfilter.desktop kscan.desktop kdatatool.desktop

+ 5
- 0
tdeio/Makefile.am View File

@@ -34,10 +34,15 @@ libtdeio_la_LIBADD = kssl/libkssl.la tdeio/libtdeiocore.la \
34 34
 	../tdewallet/client/libtdewalletclient.la \
35 35
 	$(LIBZ) $(LIBFAM) $(LIBVOLMGT) $(ACL_LIBS) $(LIB_QT) $(LIB_TDECORE) $(top_builddir)/dcop/libDCOP.la $(LIB_X11)
36 36
 
37
+magicdir = $(kde_confdir)/magic
38
+magic_DATA = tdeio.magic
39
+
37 40
 kde_servicetypes_DATA = application.desktop kurifilterplugin.desktop \
38 41
                         kcomprfilter.desktop kscan.desktop kdatatool.desktop \
39 42
                         tdefileplugin.desktop tdecmodule.desktop
40 43
 
44
+EXTRA_DIST = $(kde_mime_DATA)
45
+
41 46
 update_DATA = tdeioslave.upd
42 47
 update_SCRIPTS = useragent.pl proxytype.pl
43 48
 updatedir = $(kde_datadir)/tdeconf_update

+ 16
- 0
tdeio/tdeio.magic View File

@@ -0,0 +1,16 @@
1
+# Type: TDEIO File Types
2
+# From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
3
+#
4
+# TDE desktop file
5
+0		string  [Desktop\ Entry]        application/x-desktop
6
+!:mime  application/x-desktop
7
+0		string  [Desktop\ Action        application/x-desktop
8
+!:mime  application/x-desktop
9
+0		string	[KDE\ Desktop\ Entry]	application/x-desktop
10
+!:mime  application/x-desktop
11
+0		string  \#\ Config\ File        application/x-desktop
12
+!:mime  application/x-desktop
13
+0		string	\#\ KDE\ Config\ File	application/x-desktop
14
+!:mime  application/x-desktop
15
+0		string	\#\ TDE\ Config\ File	application/x-desktop
16
+!:mime  application/x-desktop

Loading…
Cancel
Save