gconfd postinst/prerm prob

Sebastien Bacher seb128 at canonical.com
Thu Sep 30 14:36:13 CDT 2004


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





More information about the ubuntu-devel mailing list