Page 1 of 1

Remove Browser Cache on closing [Solved]

Posted: 25 May 2017, 08:28
by colingchong
Hello,

I have been trying to have all the user data removed from the Browser (Firefox) when closing it without success.

eg. when logged into Gmail and then closing and re-opening the Browser the user is still logged in.

I have removed the "persistence" and the "Disable private mode" functions.

Is there something else that I could use?

Many Thanks

Lord Bless
Colin

Re: Remove Browser Cache on closing

Posted: 25 May 2017, 12:10
by fanthom
Private mode is disabled for Cloud/ThinClient variants by default. User must logout o clear the session.
I guess your goal is to have standard kiosk but with a bottom panel?

In order to enable private mode you can use following parameter:

Code: Select all

run_command=pmodec=`cat $profile/prefs.js`; echo "$pmodec" | egrep -v 'browser.cache.disk|browser.privatebrowsing' > $profile/prefs.js
Thanks

Re: Remove Browser Cache on closing

Posted: 25 May 2017, 15:07
by colingchong
Thanks, I will test later today

Yes I am building a Thin Client solution for a "Homeless Hotel" many of the clients are from the streets and are not very computer savvy.
The Porteus Thin Client is a good fit for them and I am try to make their online experiences easy and safe.

Lord Bless
Colin

Re: Remove Browser Cache on closing

Posted: 25 May 2017, 16:03
by colingchong
I added this command to my others and it did not change anything, I am still logged into gmail after closing and reopening Firefox.

This is the Run Commands I am using. Is there a problem with my syntax?

run_command=sed -i '/remmina.desktop/d' /etc/xdg/tint2/tint2rc && sed -i 's/#su - guest/su - guest/' $scripts/gui-app && rm /etc/xdg/tint2/tint2rc-exit && pmodec=`cat $profile/prefs.js`; echo "$pmodec" | egrep -v 'browser.cache.disk|browser.privatebrowsing' > $profile/prefs.js

Thanks
Lord Bless
Colin

Re: Remove Browser Cache on closing

Posted: 25 May 2017, 16:54
by fanthom
This one works for me:

Code: Select all

run_command=sed -i '/remmina.desktop/d' /etc/xdg/tint2/tint2rc; rm /etc/xdg/tint2/tint2rc-exit; sed -i 's/#su - guest/su - guest/' $scripts/gui-app; echo 'user_pref("browser.privatebrowsing.autostart", true);' >> $profile/prefs.js
Thanks

Re: Remove Browser Cache on closing [Solved]

Posted: 26 May 2017, 07:03
by colingchong
Works for me to :)

Many Thanks
Lord Bless
Colin