Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 247655

Summary: x11-misc/xosview doesn't load its app-defaults resources file
Product: Gentoo Linux Reporter: Alexander Miller <alex.miller>
Component: Current packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Miller 2008-11-20 01:01:15 UTC
The xosview ebuild installs a resources file as "/etc/X11/app-defaults/XOsview", but the application doesn't look in that place for its resources.

Reproducible: Always

Steps to Reproduce:
1. edit "/etc/X11/app-defaults/XOsview"
2. run xosview

Actual Results:  
the changes have no effect.

Expected Results:  
the appearance of xosview should reflect the settings in "/etc/X11/app-defaults/XOsview".

Xosview looks for a "XOsview" file in "/usr/lib/X11/app-defaults", "/usr/X11R6/lib/X11/app-defaults", "/usr/openwin/lib/X11/app-defaults", and "/usr/local/X11R6/lib/X11/app-defaults". The first directory is added by "files/xosview-resdir.patch", i.e., gentoo-specific. I think that in some older versions of xorg  "/usr/lib/X11/app-defaults" was a symlink to "/etc/X11/app-defaults", so xosview would have found the file, but now "/usr/lib/X11/app-defaults" doesn't exist (at least on my computer).

The correct search path for xorg would be:
1. "/etc/X11/app-defaults"
2. "/usr/share/X11/app-defaults"
3. "/usr/lib/X11/app-defaults"
(Locale-specific directories could be prepended, too. But I think that's going too far.)

Resolution:
The patch "files/xosview-resdir.patch" should be changed such that the "XOsview" file is searched in "/etc/X11/app-defaults" and "/usr/share/X11/app-defaults", too. Since xosview loads all resource files it finds, "/etc/X11/app-defaults" should be searched *last*.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-12-23 16:15:18 UTC
fixed