Commit 5dce5c75 authored by Piotr Wendykier's avatar Piotr Wendykier

Added *.vnf file association actions for Linux.

parent 8486d94d
......@@ -159,7 +159,67 @@
</command>
</commandList>
</associateWindowsFileExtension>
<actionGroup>
<actionList>
<writeFile>
<path>${installdir}/${project.vendor}-vnf.xml</path>
<text><![CDATA[<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/vnf">
<comment>VisNow file</comment>
<glob pattern="*.vnf"/>
</mime-type>
</mime-info>]]>
</text>
</writeFile>
<runProgram>
<program>xdg-mime</program>
<programArguments>install ${installdir}/${project.vendor}-vnf.xml</programArguments>
</runProgram>
<createDirectory>
<path>~/.local/share/applications</path>
</createDirectory>
<writeFile>
<path>~/.local/share/applications/VisNow.desktop</path>
<encoding>utf-8</encoding>
<text>[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=VisNow
GenericName=VisNow
Comment=VisNow
Exec=${installdir}/${product_shortname}-${product_version}.${platform_exec_suffix}
Terminal=false
Type=Application
Categories=Application;Utility;TextEditor;
MimeType=application/vnf
</text>
</writeFile>
<runProgram>
<program>xdg-mime</program>
<programArguments>default VisNow.desktop application/vnf</programArguments>
</runProgram>
</actionList>
<ruleList>
<platformTest type="linux-x64"/>
</ruleList>
</actionGroup>
</postInstallationActionList>
<preUninstallationActionList>
<actionGroup>
<actionList>
<runProgram>
<program>xdg-mime</program>
<programArguments>uninstall ${installdir}/${project.vendor}-vnf.xml</programArguments>
</runProgram>
<deleteFile path="~/.local/share/applications/VisNow.desktop"/>
<deleteFile path="${installdir}/${project.vendor}-vnf.xml"/>
</actionList>
<ruleList>
<platformTest type="linux-x64"/>
</ruleList>
</actionGroup>
</preUninstallationActionList>
<parameterList>
<directoryParameter>
<name>installdir</name>
......
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