Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 191826 - x11-apps/xcalc - X resource files not installed
Summary: x11-apps/xcalc - X resource files not installed
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo X packagers
URL: http://udel.edu/~mm/gentoo/xcalc
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-09 14:51 UTC by Mike Markowski
Modified: 2007-09-24 13:51 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 Mike Markowski 2007-09-09 14:51:31 UTC
It looks like XCalc.ad and XCalc-color.ad are not installed into /etc/X11/app-defaults

Reproducible: Always

Steps to Reproduce:
1. "xcalc -rpn" shows black & white image since new XCalc-color resources are unavailable.

Actual Results:  
After un-bzipping the xcalc tar ball & cd'ing into xcalc-1.0.2, I did:

cp XCalc-color.ad /etc/X11/app-defaults/XCalc-color

Expected Results:  
Colorful xcalc in RPN mode!
Comment 1 Alan Hourihane 2007-09-24 13:51:42 UTC
They're installed in /usr/share/X11/app-defaults. And just specifying the -rpn flag doesn't bring color, as the manpage says you have to change your own xresources file to have this...

*customization:  -color

and use xrdb to reload.

This is a strace output to show you it's search order.

access("/etc/X11/C/app-defaults/XCalc", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/X11/app-defaults/XCalc", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/X11/C/app-defaults/XCalc", R_OK) = -1 ENOENT (No such file or directory)
access("/etc/X11/app-defaults/XCalc", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/X11/C/app-defaults/XCalc", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/share/X11/app-defaults/XCalc", R_OK) = 0
stat64("/usr/share/X11/app-defaults/XCalc", {st_mode=S_IFREG|0644, st_size=19405, ...}) = 0
open("/usr/share/X11/app-defaults/XCalc", O_RDONLY) = 4

Re-open if there's still trouble.