<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-08-23 11:31 GMT+02:00 Jonas Smedegaard <span dir="ltr"><<a href="mailto:jonas@jones.dk" target="_blank">jonas@jones.dk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Quoting Jérémy Lal (2017-08-23 09:27:54)<br>
<span class="">> 2017-08-23 8:50 GMT+02:00 Ben Finney <<a href="mailto:bignose@debian.org">bignose@debian.org</a>>:<br>
><br>
> > 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>
> > 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>
> > >.<br>
> ><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>
> > 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>
> ><br>
><br>
> xdg-open <filepath> ?<br>
<br>
</span>Not sure, but I think sensible-browser is better: As I understand it XDG<br>
covers only graphical desktop environments, whereas sensible-* tools<br>
cover console environments as well.<br></blockquote><div></div></div><br></div><div class="gmail_extra">Also eventually some browsers will be able to run without graphical environment,</div><div class="gmail_extra">at least chromium is working toward that.</div><div class="gmail_extra">So it will make sense to launch such an app from console.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Jérémy</div></div>