<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-08-23 8:50 GMT+02:00 Ben Finney <span dir="ltr"><<a href="mailto:bignose@debian.org" target="_blank">bignose@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Ben Finney <<a href="mailto:bignose@debian.org">bignose@debian.org</a>> writes:<br>
<br>
> I am interested in packaging for Debian some JavaScript code that is a<br>
> self-contained program.<br>
><br>
> Such programs are designed, by their authors, to be downloaded to a<br>
> directory and loaded from there into the user's choice of browser.<br>
<br>
</span>An example of such a work is “MuscleBook”, which “has no server and<br>
works completely offline” <URL:<a href="https://github.com/cfilipov/MuscleBook.net" rel="noreferrer" target="_blank">https://github.com/<wbr>cfilipov/MuscleBook.net</a>>.<br>
<span class=""><br>
> To package such a program for Debian – into a hypothetical Debian<br>
> binary package ‘ipsum’ – I expect that installing that package will<br>
> give a command-line executable program, which launches and runs.<br>
<br>
</span>So, I would expect after installing the hypothetical ‘musclebook’ Debian<br>
package, that a command such as ‘/usr/bin/musclebook’ is installed.<br>
<br>
Then, running ‘/usr/bin/musclebook’ at the command line invokes a new<br>
browser tab (or a new browser window is started) visiting the MuscleBook<br>
‘index.html’.<br>
<br>
I understand how to install the files (to ‘/usr/share/musclebook/’, for<br>
example). What comes next is to work correctly with the Debian web<br>
browser convention, and have a command-line program load the file<br>
‘/usr/share/musclebook/index.<wbr>html’ in the currently-running browser.<br>
<br>
How would a Debian package do that nicely with our conventions?<br></blockquote><div></div></div><br></div><div class="gmail_extra">xdg-open <filepath> ?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Jérémy</div></div>