GNOME Bugzilla – Bug 328668
devhelp should look into g_get_system_data_dir
Last modified: 2006-02-18 09:35:08 UTC
Currently devhelp looks for help files in the following locations: base_add_books (base, DATADIR "/gtk-doc/html"); base_add_books (base, "/usr/share/gtk-doc/html"); base_add_books (base, DATADIR "/devhelp/books"); While this works to some extents, it fails for example when I compile and install gnome software in my home directory, but have not installed devhelp in the same prefix. Devhelp should use g_get_home_data_dir and all elements of g_get_system_data_dir to add books. This is according to the basedir spec: http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html
Marking for gnome-love.
Created attachment 58552 [details] [review] patch against cvs head with cvs diff -up Hello, with this patch, devhelp looks into * g_get_system_data_dir/g_get_user_data_dir + "gtk-doc" + "html" * g_get_system_data_dir/g_get_user_data_dir + "devhelp" + "books" where + means concat Regards,
Thanks! Don't know if that makes a difference, but g_get_user_data_dir should come before g_get_system_data_dirs.
Devhelp developers, do you want me to commit this?
Great! Please commit :)
2006-02-18 Behdad Esfahbod <behdad@gnome.org> * src/dh-base.c (base_init_books): Add books installed into user and system data dirs. Patch from Antoine Dopffer. Fixes bug #328668.