[Pkg-javascript-devel] JavaScript in-browser program, packaged in Debian

Jérémy Lal kapouer at melix.org
Wed Aug 23 12:53:29 UTC 2017


2017-08-23 14:40 GMT+02:00 Ben Finney <bignose at debian.org>:

> Jonas Smedegaard <jonas at jones.dk> writes:
>
> > Quoting Jérémy Lal (2017-08-23 09:27:54)
> > > xdg-open <filepath> ?
> >
> > Not sure, but I think sensible-browser is better: As I understand it
> > XDG covers only graphical desktop environments, whereas sensible-*
> > tools cover console environments as well.
>
> In the case of essentially graphical programs like the ones I'm thinking
> of (e.g. “MuscleBook”), a pixel-based graphical browser would be
> required. That means ‘xdg-open’ is better for this purpose.
>
> So I would make a package that “Depends: xdg-utils”, and install a
> simple ‘/usr/bin/musclebook’ shell script:
>
>     #! /bin/sh
>
>     exec xdg-open /usr/share/musclebook/index.html
>
> Would that be fragile in some way? Is there something I am overlooking?
>

Yes, two things, which i believe are not standardized
- xmlhttprequest to file:// is disallowed in most, if not all, browsers by
default,
wether the initiator comes from file:// url or not
- some browsers can run an application in "kiosk mode" - it runs the app
independently of any other already opened web page, usually without omnibar
and/or without menus.

However i don't know if it's possible to benefit from xdg-open and these
browser
specific cli options.

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20170823/d2d963a0/attachment.html>


More information about the Pkg-javascript-devel mailing list