Commit fc1dc3d8 authored by Piotr Wendykier's avatar Piotr Wendykier

- Added *.vns and *.vna association actions for Linux.

- Changed mime type for Linux.
parent d558ee63
......@@ -179,19 +179,21 @@
<actionGroup>
<actionList>
<writeFile>
<path>${installdir}/${project.vendor}-vnf.xml</path>
<path>${installdir}/${project.vendor}-visnow.xml</path>
<text><![CDATA[<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/vnf">
<mime-type type="application/visnow">
<comment>VisNow file</comment>
<glob pattern="*.vnf"/>
<glob pattern="*.vns"/>
<glob pattern="*.vna"/>
</mime-type>
</mime-info>]]>
</text>
</writeFile>
<runProgram>
<program>xdg-mime</program>
<programArguments>install ${installdir}/${project.vendor}-vnf.xml</programArguments>
<programArguments>install ${installdir}/${project.vendor}-visnow.xml</programArguments>
</runProgram>
<createDirectory>
<path>~/.local/share/applications</path>
......@@ -209,12 +211,12 @@ Exec=${installdir}/${product_shortname}-${product_version}.${platform_exec_suffi
Terminal=false
Type=Application
Categories=Application;Utility;TextEditor;
MimeType=application/vnf
MimeType=application/visnow
</text>
</writeFile>
<runProgram>
<program>xdg-mime</program>
<programArguments>default VisNow.desktop application/vnf</programArguments>
<programArguments>default VisNow.desktop application/visnow</programArguments>
</runProgram>
</actionList>
<ruleList>
......@@ -255,10 +257,10 @@ MimeType=application/vnf
<actionList>
<runProgram>
<program>xdg-mime</program>
<programArguments>uninstall ${installdir}/${project.vendor}-vnf.xml</programArguments>
<programArguments>uninstall ${installdir}/${project.vendor}-visnow.xml</programArguments>
</runProgram>
<deleteFile path="~/.local/share/applications/VisNow.desktop"/>
<deleteFile path="${installdir}/${project.vendor}-vnf.xml"/>
<deleteFile path="${installdir}/${project.vendor}-visnow.xml"/>
</actionList>
<ruleList>
<platformTest type="linux-x64"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment