[maemo-developers] reloading a status bar plugin

From: pHilipp Zabel philipp.zabel at gmail.com
Date: Wed Feb 24 14:27:00 EET 2010
2010/2/24 b0unc3 <b0unc3 at email.it>:
>
>
> 2010/2/24 Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>
>>
>> On Tue, 2010-02-23 at 20:06 +0100, ext b0unc3 wrote:
>> > Hello,
>> >
>> > I've created a statusbar plugin, now I want to reload it (eg. when the
>> > configuration file changes).
>> > What is the best way to do that ?
>>
>> If the plugin can be unloaded and reloaded cleanly (meaning, it does not
>> crash hildon-status-menu :)), you could touch the .desktop file in some
>> way (e.g. increase version number inside the file) to make HSM unload
>> and reload you.
>
> I cannot change the .desktop contents by user.

You could touch it with sudo some-helper-script added to the sudoers file.
But I wonder, why do you need to reload the plugin at all? Can't you
just reload the configuration from the running status menu applet and
adapt it accordingly?

regards
Philipp
More information about the maemo-developers mailing list