File URIs with LaunchBrowser

Comments

1 comment

  • Avatar
    wojciechka

    The launchBrowser action may not work with file:// protocol. The best way is to use OS-specific commands to open the file.

    For example to open page.html in ${installdir}:

    <runProgram> <program>cmd</program> <programArguments>/c start page.html</programArguments> <workingDirectory>${installdir}</workingDirectory> <ruleList> <platformTest> <type>windows</type> </platformTest> </ruleList> </runProgram> <runProgram> <program>xdg-open</program> <programArguments>./page.html</programArguments> <workingDirectory>${installdir}</workingDirectory> <ruleList> <platformTest> <type>linux</type> </platformTest> </ruleList> </runProgram> <runProgram> <program>open</program> <programArguments>page.html</programArguments> <workingDirectory>${installdir}</workingDirectory> <ruleList> <platformTest> <type>osx</type> </platformTest> </ruleList> </runProgram>

Please sign in to leave a comment.