← Back to team overview

ubuntu-phone team mailing list archive

Re: viewing local HTML files

 

El día Tuesday, March 29, 2016 a las 09:47:40AM +0200, Olivier Tilloy escribió:

> On Mon, Mar 28, 2016 at 1:43 PM,  <kaabud-lp@xxxxxxxx> wrote:
> >>>>  I have in the HOME of phablet some tree with HTML (...) files:
> >
> > Oh, sorry, I was a bit too brief - I thought you had been down the route of handwritten .desktop's before.
> >
> > You put this in a new file here:
> > ~/.local/share/application/
> > e.g.,
> >
> > ~/.local/share/application/MyWebContainer.desktop
> >
> > ....

> 
> Thanks for that useful tip!
> 
> I can confirm that browsing local HTML files won’t work in the browser.
> This is an unfortunate side-effect of confining the browser with
> apparmor to prevent disclosing sensitive information (previously the
> browser ran unconfined and one could view the contents of all files on
> the filesystem).
> 
> ....

Putting this idea more general: can I used such a *.desktop file to
launch a shell script in /home/phablet, for example one with the lines:

#!/bin/sh 

cd /media/phablet/*/Maps
nohup python3 -m http.server 8888 &

Thanks

	matthias

-- 
Matthias Apitz, ✉ guru@xxxxxxxxxxx, ⌂ http://www.unixarea.de/  ☎ +49-176-38902045


References