<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-08-23 14:40 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="">Jonas Smedegaard <<a href="mailto:jonas@jones.dk">jonas@jones.dk</a>> writes:<br>
<br>
> Quoting Jérémy Lal (2017-08-23 09:27:54)<br>
</span><span class="">> > xdg-open <filepath> ?<br>
><br>
> Not sure, but I think sensible-browser is better: As I understand it<br>
> XDG covers only graphical desktop environments, whereas sensible-*<br>
> tools cover console environments as well.<br>
<br>
</span>In the case of essentially graphical programs like the ones I'm thinking<br>
of (e.g. “MuscleBook”), a pixel-based graphical browser would be<br>
required. That means ‘xdg-open’ is better for this purpose.<br>
<br>
So I would make a package that “Depends: xdg-utils”, and install a<br>
simple ‘/usr/bin/musclebook’ shell script:<br>
<br>
    #! /bin/sh<br>
<br>
    exec xdg-open /usr/share/musclebook/index.<wbr>html<br>
<br>
Would that be fragile in some way? Is there something I am overlooking?<br></blockquote><div><br></div><div>Yes, two things, which i believe are not standardized</div><div>- xmlhttprequest to file:// is disallowed in most, if not all, browsers by default,</div><div>wether the initiator comes from file:// url or not</div><div>- some browsers can run an application in "kiosk mode" - it runs the app</div><div>independently of any other already opened web page, usually without omnibar</div><div>and/or without menus.</div><div><br></div><div>However i don't know if it's possible to benefit from xdg-open and these browser</div><div>specific cli options.</div><div><br></div><div>Jérémy</div></div></div></div>