[openbox] Problems configuring Openbox
Pedro Werneck
pedro.werneck at bol.com.br
Mon Nov 10 11:08:21 EST 2003
Hi Mike
Well... $XDG_DATA_DIRS is not set here, so it's not the problem...
I added the g_print()'s on all if and else blocks in the loaddb()
function, with a
number on each one. When I try to start Openbox, I get this output:
-----------------------------------------------------------------------
1: s = /home/pedro/.themes/TheBear/openbox-3/themerc
(openbox-3:6122): ObRender-WARNING **: Unable to load font: Bitstream
Vera Sans:bold:pixelsize=9:shadow=y:shadowoffset=1:shadowtint=75
(openbox-3:6122): ObRender-WARNING **: Trying fallback font: sans
(openbox-3:6122): ObRender-WARNING **: Unable to load font: sans
(openbox-3:6122): Openbox-CRITICAL **: Unable to load a theme.
----------------------------------------------------------------------
The number 1 on the printed line is from this block:
----------------------------------------------------------------------
} else {
/* XXX backwards compatibility, remove me sometime later */
s = g_build_filename(g_get_home_dir(), ".themes", name,
"openbox-3", "themerc", NULL);
if ((db = XrmGetFileDatabase(s)))
theme->path = g_path_get_dirname(s);
g_print("1: s = %s\n", s);
g_free(s);
---------------------------------------------------------------------
And, of course, the theme file is there:
---------------------------------------------------------------------
werneck at ashmedai:~$ ls -l
/home/pedro/.themes/TheBear/openbox-3/themerc
-rw-r--r-- 1 pedro.we users 3698 Nov 7 19:07
/home/pedro/.themes/TheBear/openbox-3/themerc
--------------------------------------------------------------------
So... seems like the theme file is found, but cannot be loaded. Anybody
else with this problem ? Any more ideas on what can I do ?
Thanks for the help
Pedro
On Fri, 7 Nov 2003 15:51:39 -0600
Mike <logan at dct.com> wrote:
> Hm, only thing I can think of offhand is maybe XDG_DATA_DIRS
> (environment variable) is set and does not contain /usr/local/share.
>
> That variable overrides the default paths openbox will look in for
> themes. If it's set, you could append some paths to it...
> XDG_DATA_DIRS="/usr/share:/usr/local/share:$HOME/.local/share"
>
> Or if you wanted to try some debugging, you could open render/theme.c,
> go to loaddb() function and add some g_print()'s.
>
> Specifically, inside:
> for (it = parse_xdg_data_dir_paths(); !db && it;
> it = g_slist_next(it))
> {
> s = g_build_filename(it->data, "themes", name,
> "openbox-3", "themerc", NULL);
> if ((db = XrmGetFileDatabase(s)))
> theme->path = g_path_get_dirname(s);
>
> g_print("s = %s\n", s); // <- HERE
>
> g_free(s);
> }
>
> --program_prefix=-3 don't cause any change to the theme paths that I
> can see.
>
> Mike
>
> On Friday, November 07, 2003 at 07:36PM, Pedro Werneck wrote:
> >Hi
> >
> >I just installed the stable version but I have a problem configuring
> >it. Seems like it can't find the themes.
> >
> >When I try to start it I get some warnings about fonts and the error:
> >
> >(/usr/local/bin/openbox-3:26098): Openbox-CRITICAL **: Unable to load
> >a theme.
> >
> >But I have the themes on both search paths .
> >
> >/usr/local/share/themes/
> >Allegro/ Artwiz/ Blah41/ Om4Ob/ TheBear/
> >
> >/home/pedro/.themes/
> >Allegro/ Artwiz/ Blah41/ Om4Ob/ TheBear/
> >
> >
> >On my /home/pedro/.config/openbox/rc.xml (generated by ObConf 1.5) I
> >have:
> >
> ><theme>
> > <name>TheBear</name>
> > <titlelayout>NLIMC</titlelayout>
> ></theme>
> >
> >
> >The only unusual thing was the --program-suffix=-3 flag when building
> >it.
> >
> >I tried everything I could think of, but it doesn't work. Probably
> >it's a silly mistake, but I can't find out what is.
> >
> >Thanks for any help
> >
> >Pedro
> >
> >
More information about the openbox
mailing list