Salamek / chromium-kiosk

Chromium kiosk is simple package turning your Archlinux or Debian (and alike) based PC/Raspberry into simple web kiosk using chromium.
GNU General Public License v3.0
60 stars 10 forks source link

Cookies and/or broswer storage are lost on exit #75

Closed roobre closed 1 year ago

roobre commented 1 year ago

Hello there!

I've been happily using chromium-kiosk to show a Grafana dashboard on an unattended machine. I have also recently set it up on a different machine to serve as a Homeassistant dashboard.

Something I've noticed is that chromium-kiosk would log me out from both sites when the device is rebooted. I'm pretty sure that Homeassistant is storing session data in the browser's local storage, and I'm not positive about Grafana but I bet that one is using cookies.

I think it would be great for those use cases if chromium-kiosk could preserve them across boots, as logging in requires some effort (e.g. I don't have my password manager installed on kiosks) and rebooting may happen more frequently that one might expect, e.g. power cuts.

Is there a way to configure chromium-kiosk to persist cookies/localstorage? If not, would this be something that you could consider implementing? Thanks!

Salamek commented 1 year ago

That is weird, only way to reset cookies is by settings IDLE_TIME that resets to homepage or by setting it when saving cookie... I need to check this and maybe add some more subtle settings for IDLE_TIME

roobre commented 1 year ago

In case it helps, I currently have IDLE_TIME set to 0:

IDLE_TIME: 0 # Seconds, How log must be kiosk idle to redirect to HOME_PAGE, 0=disabled
misisnik commented 1 year ago

Having the same issue. In "--disable-databases" systemctl status:

"/usr/lib/qt6/QtWebEngineProcess --type=renderer --webengine-schemes=qrc:sV --first-renderer-process --disable-speech-api --enable-threaded-compositing --disable-databases

could not be this the issue ?

Salamek commented 1 year ago

Ok this should be fixed in latest versions, you need to set your profile name in /etc/chromium-kiosk/config.yml like this:

PROFILE_NAME: 'my-profile'

Default profile name is default that is by default "off-the-record"

(i have tested this by loggin in to github and rebooting testing VM)

roobre commented 1 year ago

This is working wonderfully now, huge thanks @Salamek!