Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247655 - x11-misc/xosview doesn't load its app-defaults resources file
Summary: x11-misc/xosview doesn't load its app-defaults resources file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-20 01:01 UTC by Alexander Miller
Modified: 2009-12-23 16:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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