Prefs not saved except through Preferences dialogue

Bug #130974 reported by cumpstey
4
Affects Status Importance Assigned to Milestone
gDesklets
Invalid
Low
Bjoern Koch

Bug Description

gDesklets 0.35.3

I gather that desklet preferences are stored in ~/gdesklets/registry/config0x7e982137.db. I guess, though experimentation, that desklet preferences are only written to this file when the preferences dialogue box is closed. This means that a change to any preferences made without opening the Preferences dialogue (by using the Prefs namespace, eg: Prefs.pref.value = "text") will not be stored until the Preferences dialogue box is opened then closed. This severely limits how interactive a desklet can be, as preferences set using a custom menu or an entry box will not be carried over to subsequent sessions. Perhaps preferences could be stored when the desklet is shut down, or a command could be issued to save preferences.

Revision history for this message
Bjoern Koch (h.humpel) wrote :

Well, first I thought this is a bug and might be easy to fix.
But on second thought I am quiet not sure if it is a good idea to change and save settings / prefs without the user's interactivity and/or knowledge. This "feature" could be misused (in general). And I don't like the idea of a desklet / program changing my prefs to "whatever" without asking me, or even worse: without even noticing me.
Maybe we should be discussing this first on the mailing list or on (every) Sunday's IRC meeting ?!

Changed in gdesklets:
assignee: nobody → h.humpel
Revision history for this message
Christian Meyer (chrisime) wrote :

I agree to discuss the issue on the mailing list.

Changed in gdesklets:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Bjoern Koch (h.humpel) wrote :

We still need an opinion on this one.
I still don't feel very comfy with this one although I agree that sometime it might be useful.

Pushing this one to the mailing list to find an agreement.

Changed in gdesklets:
status: Confirmed → Triaged
Revision history for this message
MarioGonzalez (gonzalemario) wrote :

This is done already and it's documented http://gdesklets.de/develbook/script-builtins.html

So, set_config() and get_config() are your new friends now :-)

I will set this bug report as "Invalid" then.

Revision history for this message
cumpstey (neil-cumpstey) wrote : Re: [Bug 130974] Re: Prefs not saved except through Preferences dialogue

Great. Thank you.

Neil

2008/12/18 MarioGonzalez <email address hidden>:
> This is done already and it's documented http://gdesklets.de/develbook
> /script-builtins.html
>
> So, set_config() and get_config() are your new friends now :-)
>
> I will set this bug report as "Invalid" then.
>
> --
> Prefs not saved except through Preferences dialogue
> https://bugs.launchpad.net/bugs/130974
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Changed in gdesklets:
importance: Wishlist → Low
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.