[oi-dev] libpulsecore error

Tim Mooney Tim.Mooney at ndsu.edu
Wed Mar 8 19:47:25 UTC 2023


In regard to: Re: [oi-dev] libpulsecore error, Gary Mills said (at 8:32am...:

> On Mon, Mar 06, 2023 at 05:19:34PM -0600, Gary Mills wrote:
>> On Mon, Mar 06, 2023 at 02:27:31PM -0600, Tim Mooney via oi-dev wrote:
>>>
>>> What does:
>>>
>>> 	gsettings get org.mate.panel.menubar max-recent-items
>>>
>>> report?
>>
>>   <mills at b550:62>$ gsettings get org.mate.panel.menubar max-recent-items
>>   No such key “max-recent-items”
>
> The problem seems to be that two keys are missing from the schema.  It
> seems simple at first, but the XML files in
> /usr/share/glib-2.0/schemas do contain the apparently missing keys.

That's correct.  I believe (but am not 100% certain) that those files
are "definitions" for the settings (and types) that mate-panel support:

     <key name="max-recent-items" type="i">
       <range min="-1"/>
       <default>10</default>
       <summary>Maximum number of recent documents displayed in the Places menu</summary>
       <description>Maximum number of recent documents that are displayed in the Places menu at a time. If this is set to -1, all known recent documents will be displayed.</description>
     </key>

type="i" is integer, type="u" is unsigned, type="b" is boolean, etc.

I believe what the error message is saying is that your current theme is
not supplying a value for max-recent-items, but the gschema says there
should be one.

> There are other locations searched, though.  One is
> /usr/share/glib-2.0/schemas/gschemas.compiled .

That's generated by glib-compile-schemas(1).  From my understanding, it's
basically just a binary cache of all of the XML schemas in that directory.

The Gsettings classes in glib can read that binary blob.  I'm not sure if
there's a "decompile" tool, but I kind of doubt it.

You could try move that file aside and then regenerate it with
glib-compile-schemas and see if you get an identical file.

>I have not figured
> how examine that file.  It may well be correct.  There is also a
> ".cache" directory in my home directory.  I suppose I can remove or
> rename it, and it will be rebuilt.  I haven't tried that yet.

At one point I understood the theme support better, but it has been
so long since I looked at it that I don't recall how it all works.  If
you do figure out where the theme you're using is lacking settings, please
do report back to the list.

Tim
-- 
Tim Mooney                                             Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure /
Division of Information Technology    /                701-231-1076 (Voice)
North Dakota State University, Fargo, ND 58105-5164


More information about the oi-dev mailing list