Re: Problems after installing schemas from a spec file



Hi,

On Fri, 2004-06-25 at 19:01, Mark McLoughlin wrote:
> Hi Cyrille,
> 
> On Fri, 2004-06-25 at 10:17, Cyrille Moureaux wrote:
> 
> > I've recently seen that issue, where the root umask applies to the files 
> > created by running gconftool. The spec file probably needs to be 
> > modified to explicitly set the umask before running the command. Maybe 
> > the default root umask has changed recently in the user environment.
> 
> 	Yeah, that's my guess too - but I'm interested as to whether anyone
> knows why this behaviour actually changed and why it doesn't happen for
> all packages. I don't explicitly change the umask in any of my packages
> before installing the schemas.
> 
> 	Ah, some more details are coming back to me! :-)
> 
> 	It all depends on the permissions of the toplevel dir for that source -
> the backend copies those permissions for all new files it creates. See
> markup-backend.c:resolve_address().
> 
> 	So, in Fedora at least, the GConf2 package owns
> /etc/gconf/gconf.xml.defaults and explicitly sets the permissions on the
> dir to 755.
So let me see if I understand. There are two possibilities:

1. Users have root with some "incorrect" umask, which causes the 
   directories under /etc/gconf.xml.defaults to be created with 
   permissions that prevent normal users from using it;
2. The /etc/gconf/gconf.xml.defaults had incorrect permissions
   when the package was installed.

Is this correct?

I've got some more info that may help. Some users reported that
doing one of these two things solved the problem:

========================================
Thing 1:
$ cp -r /etc/gconf/gconf.xml.defaults/apps/gnochm/ ~/.gconf/apps

Then I set the html_bg_color string with gconftool:

$ gconftool-2 -s -t string
/apps/gnochm/preferences/html_bg_color "#ffffffffffff"
========================================
Thing 2:
gconftool-2
--install-schema-file=/etc/gconf/schemas/gnochm.schemas
========================================

Cheers
Rubens





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