LDCad 1.5 Alpha 1 (win+linux)


Re: LDCad 1.5 Alpha 1 - question for the Linux users
#82
Looks good.
A couple of things to consider:
* You don't seem to be using the icofn variable.
* You might consider using a png icon in /usr/share/pixmaps to be a bit more "correct".
* LDView uses mime-type application/x-ldraw with a bit more complicated ldraw.xml
* Perhaps consider a base install variable, in case some distributions like to put stuff in /usr/local instead of /usr.
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-ldraw">
    <comment>LDraw Model</comment>
    <glob pattern="*.ldr" />
    <glob pattern="*.LDR" />
    <magic priority="60">
        <match type="string" value="0\ ~Moved\ to" offset="0"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ LDRAW_ORG\ Part\ UPDATE" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ LDRAW_ORG\ Primitive" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ !LDRAW_ORG\ Part" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ !LDRAW_ORG\ Primitive" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ !LDRAW_ORG\ Shortcut" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ LDRAW_ORG\ Shortcut" offset="0:1000"/>
    </magic>

    <magic priority="60">
        <match type="string" value="0\ Official\ LCad\ update" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ Official\ LCAD\ Part" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ Official\ LCad\ Part" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ Original\ LDraw\ Part" offset="0:1000"/>
    </magic>
  </mime-type>

  <mime-type type="application/x-multipart-ldraw">
    <comment>LDraw Model</comment>
    <glob pattern="*.mpd" />
    <glob pattern="*.MPD" />
    <magic priority="60">
        <match type="string" value="Author:\ MLCad" offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ ROTATION\ CENTER\ " offset="0:1000"/>
    </magic>
    <magic priority="60">
        <match type="string" value="0\ Unofficial\ Model" offset="0:1000"/>
    </magic>
  </mime-type>

</mime-info>
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: LDCad 1.5 Alpha 1 - question for the Linux users - by Richard Speyer - 2015-08-12, 21:42

Forum Jump:


Users browsing this thread: 5 Guest(s)