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...@yahoo.de> 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, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045

-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

Reply via email to