View Full Version : [SOLVED] gconfd postinst/prerm prob
Oliver Grawert
November 15th, 2004, 06:25 PM
hi,
Am Donnerstag, den 30.09.2004, 16:57 -0400 schrieb Nathaniel McCallum:
> It doesn't affect user changes.
thnx :-)
ciao
oli
--
got ubuntu ? --------------> GET UBUNTU !!!
http://www.ubuntulinux.org/
Oliver Grawert
November 15th, 2004, 06:25 PM
Am Donnerstag, den 30.09.2004, 22:22 +0200 schrieb Sebastien Bacher:
> Your method seems to be appropriate in this case, but I'm not sure of
> why do you get this delay. I'll try and let you know if I find
> something.
the delay is gone by dropping --direct, so i'm fine with it now.
thanks
ciao
oli
--
got ubuntu ? --------------> GET UBUNTU !!!
http://www.ubuntulinux.org/
Nathaniel McCallum
November 15th, 2004, 06:25 PM
On Thu, 2004-09-30 at 22:36 +0200, Oliver Grawert wrote:
> hi,
>
> Am Donnerstag, den 30.09.2004, 13:10 -0700 schrieb Matt Zimmerman:
>
> > Wouldn't this overwrite the user's preference if they have changed it?
>
> as far as i understood the users changes to defaults are stored in
> ~/.gconf so they should not get affected if this is true...
> but as mentioned in my answer to sebastien, i'll have to read more doc
> on gconf as i haven't used it from the programmers side yet.
It doesn't affect user changes.
Nathaniel
Sebastien Bacher
November 15th, 2004, 06:25 PM
Le jeudi 30 septembre 2004 ? 22:07 +0200, Oliver Grawert a ?crit :
> > BTW why not using a schema ?
> ....as you could have guessed by my errors,
> because i need to learn a lot (about gconf as well)
> ;-)
>
> thanks, i'll read the gconf doc on schemas
oups, the key comes from an another package in fact, you can't have it
in 2 differents schemas.
Your method seems to be appropriate in this case, but I'm not sure of
why do you get this delay. I'll try and let you know if I find
something.
Cheers,
Sebastien Bacher
Oliver Grawert
November 15th, 2004, 06:25 PM
hi,
Am Donnerstag, den 30.09.2004, 13:10 -0700 schrieb Matt Zimmerman:
> Wouldn't this overwrite the user's preference if they have changed it?
as far as i understood the users changes to defaults are stored in
~/.gconf so they should not get affected if this is true...
but as mentioned in my answer to sebastien, i'll have to read more doc
on gconf as i haven't used it from the programmers side yet.
ciao
oli
--
got ubuntu ? --------------> GET UBUNTU !!!
http://www.ubuntulinux.org/
Matt Zimmerman
November 15th, 2004, 06:25 PM
On Thu, Sep 30, 2004 at 09:09:21PM +0200, Oliver Grawert wrote:
> in my postinst i have this lines:
>
> ------------- snip -----------
> #!/bin/sh
>
> gconftool-2 --direct --config-source
> xml:readwrite:/etc/gconf/gconf.xml.defaults --type string
> --set /desktop/gnome/volume_manager/autophoto_command "pimp %m"
>
> killall -HUP gconfd-2
> ------------- snap -----------
Wouldn't this overwrite the user's preference if they have changed it?
--
- mdz
Oliver Grawert
November 15th, 2004, 06:25 PM
hi,
Am Donnerstag, den 30.09.2004, 21:36 +0200 schrieb Sebastien Bacher:
> --direct
> Access the config database directly, bypassing server.
> Requires that gconfd is not running.
>
> gconfd is probably running ...
sure, i want to be able to install in X too
>
>
> > killall -HUP gconfd-2
>
> you should no use killall which is not a standard command, rather a kill
> -HUP `pidof gconfd-2` >/dev/null 2>&1 || true
>
>
> BTW why not using a schema ?
.....as you could have guessed by my errors,
because i need to learn a lot (about gconf as well)
;-)
thanks, i'll read the gconf doc on schemas
ciao
oli
--
got ubuntu ? --------------> GET UBUNTU !!!
http://www.ubuntulinux.org/
Oliver Grawert
November 15th, 2004, 06:25 PM
hi,
i'm trying to package a little photo import app which i want to get
started by g-v-m if a cam is plugged in.
in my postinst i have this lines:
------------- snip -----------
#!/bin/sh
gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type string
--set /desktop/gnome/volume_manager/autophoto_command "pimp %m"
killall -HUP gconfd-2
------------- snap -----------
which i would expect to immediately set the new key and reload the
config....
but obviously i have to relogin or wait quite a while.
what am i doing wrong ??
ciao
oli
--
got ubuntu ? --------------> GET UBUNTU !!!
http://www.ubuntulinux.org/
Sebastien Bacher
November 15th, 2004, 06:25 PM
Le jeudi 30 septembre 2004 ? 21:09 +0200, Oliver Grawert a ?crit :
> hi,
>
> i'm trying to package a little photo import app which i want to get
> started by g-v-m if a cam is plugged in.
>
> in my postinst i have this lines:
>
> ------------- snip -----------
> #!/bin/sh
>
> gconftool-2 --direct --config-source
> xml:readwrite:/etc/gconf/gconf.xml.defaults --type string
> --set /desktop/gnome/volume_manager/autophoto_command "pimp %m"
--direct
Access the config database directly, bypassing server.
Requires that gconfd is not running.
gconfd is probably running ...
> killall -HUP gconfd-2
you should no use killall which is not a standard command, rather a kill
-HUP `pidof gconfd-2` >/dev/null 2>&1 || true
BTW why not using a schema ?
Cheers,
Sebastien Bacher
vBulletin® v3.8.0 Release Candidate 2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.