Reading local HTML content with a browser

You can not browse local HTML (...) content with the browser. This is a side-effect of confining the browser with apparmor to prevent disclosing sensitive information from the files in the phone.

But there is a workaround which I do use to read my diary, written in HTML and niced with photos. Create a MyWebContainer.desktop file with the following lines:

[Desktop Entry]
Name=diario2016
Type=Application
Exec=webapp-container --enable-addressbar --enable-back-forward --webappUrlPatterns=/home/phablet/diario2016/* /home/phablet/diario2016/diario.html
Icon=/home/phablet/diario2016/Diary-Icon.png
Terminal=false
X-Ubuntu-Touch=true

and place this as root into the place: ~/.local/share/applications/MyWebContainer.desktop

Ofcourse, you need as well some nice icon file. After this, reload the app screen and it should show up.

I write it on my netbook and just copy it over with

$ rsync -arv diario2016 [email protected]:.
sending incremental file list
diario2016/diario.html
sent 1,727 bytes received 161 bytes 3,776.00 bytes/sec
total size is 13,712,842 speedup is 7,263.16

Last updated: Thu Mar 31 10:47:40 CEST 2016