Re: preserving user configuration



On 7/7/06, Raphael Slinckx <raphael slinckx net> wrote:

Yes, the implementation is lagging a bit.
The interesting thing about it, is that there is no other way to
preserve settings from gtik than to walk the gconf key
/apps/panel/applets, look for directories names applet_*, look into each
directory if the bonobo OAFIID correspond to gtik's one, then extracts
information from gtik gconf schema and import it. Note that there is
apparently no way to know if you have multiple applet_* matching, which
one is the real, corresponding to the running instance of gtik (or maybe
you have more than one instance and then you're even more screwed).


I agree it sounds mildly painful.


PS. I think i could use someone working on it a bit, since i'm seriously
low on time to handle all my other stuff, and the original person who
told me he was going to help didn't help, after all.

I'll attach the patch I needed to make it work in rawhide.

Matthias
--- gnome-applets-2.15.1.1/invest-applet/data/art/Makefile.am.invest	2006-07-07 14:37:38.000000000 -0400
+++ gnome-applets-2.15.1.1/invest-applet/data/art/Makefile.am	2006-07-07 14:37:48.000000000 -0400
@@ -4,6 +4,8 @@
 pixmapsdir = $(datadir)/pixmaps
 pixmaps_DATA = invest-big.png
 
+pkgdatadir = $(datadir)/gnome-applets/invest-applet
+
 artdir = $(pkgdatadir)/art
 art_DATA = invest-button.png invest-16.png invest.svg
 
--- gnome-applets-2.15.1.1/invest-applet/data/Makefile.am.invest	2006-07-07 14:37:55.000000000 -0400
+++ gnome-applets-2.15.1.1/invest-applet/data/Makefile.am	2006-07-07 14:39:34.000000000 -0400
@@ -30,12 +30,12 @@
 uidir = $(datadir)/gnome-2.0/ui
 ui_DATA = \
 	Invest_Applet.xml
+pkgdatadir = $(datadir)/gnome-applets/invest-applet
+gladedir = $(pkgdatadir)/glade
 glade_DATA = \
 	prefs-dialog.glade \
 	financialchart.glade
 
-investbindir = $(libdir)/invest-applet
-
 # ******************************************************************************
 # Build rules
 # ******************************************************************************
@@ -44,7 +44,7 @@
 @INTLTOOL_DESKTOP_RULE@
 
 $(server_in_files): $(server_in_files:.server.in=.server.in.in)
-	sed -e "s|\ LIBEXECDIR\@|$(investbindir)|" $< > $@
+	sed -e "s|\ LIBEXECDIR\@|$(libexecdir)|" $< > $@
 
 #if GCONF_SCHEMAS_INSTALL
 #install-data-local: install-schemas


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]