snapweb icon indicating copy to clipboard operation
snapweb copied to clipboard

ID changes every time

Open fuchsmich opened this issue 1 year ago • 2 comments

I'm not sure, if this is the right place to post this issue:

I'm using snapweb client for integrating snapcast on plasma (kde). There is an applet called "web browser", it opens a browser widget.

On the snapserver this client gets a new id every time you start a new desktop session (when the widget gets created).

So the settings (name and latency) get lost.

Could somebody please give me hints on how to investigate and resolve this?

fuchsmich avatar Jun 30 '24 15:06 fuchsmich

Snapweb is using the localstorage API to persist data. Everytime it starts, it will read the value for the key uniqueId from the local storage or create and store one, if it does not exist. So it seems that the applet doesn't persist the data.

badaix avatar Jun 30 '24 17:06 badaix

Thank you. Will try to resolve this and report back.

EDIT: The applet uses QML WebEngineView, which should store data, if not set otherwhise.

fuchsmich avatar Jul 01 '24 09:07 fuchsmich

In Plasma 6.3 you can use snapweb as applet. I added persistent storage to webbrowser applet.

image

fuchsmich avatar Oct 06 '24 12:10 fuchsmich