[gDesklets] Desklet path
- From: Joe Sapp <sappj ieee org>
- To: gdesklets-list gnome org
- Subject: [gDesklets] Desklet path
- Date: Tue, 18 Oct 2011 21:24:52 -0400
Hi,
It seems I need the absolute path to the current desklet for the
modifications I'm making to the Calendar desklet. This requires some core
modification, but I'm not sure if the hack I've come up with is that great.
These are the options I see:
-Some constant in the Dsp namespace
-Some function like get_config(), set_config(), etc.
-A config item
What I did is the last item, as I couldn't figure out how to do the first
and thought it was overkill to do the second. So to get the current path in
a desklet, you would need to:
get_config("__display_path")
Overwriting it with set_config() is useless since it's set every time the
desklet is opened.
So what do you think, this method or a function (like get_path())?
Thanks,
Joe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]