Bug 352762 - Fails to process Xresources file which contains #include directive with relative path.
Summary: Fails to process Xresources file which contains #include directive with rela...
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: krdb (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-15 17:39 UTC by Brian
Modified: 2021-03-09 07:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Include users home directory in path for xrdb (538 bytes, patch)
2015-09-15 17:44 UTC, Brian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian 2015-09-15 17:39:51 UTC
Fails to process  ~/.Xresources file which contains a series of #include directives like so: 

#include ".Xresources.d/current-scheme" 
#include ".Xresources.d/solarized-scheme" 
#include ".Xresources.d/xft" 
#include ".Xresources.d/xterm" 
#include ".Xresources.d/rxvt" 
#include ".Xresources.d/grace" 

~/.xsession-errors shows:

/dev/shm/kde-bgo/kcminitTw6635.tmp:473:40: fatal error: .Xresources.d/current-scheme: No such file or directory 
 #include ".Xresources.d/current-scheme" 
                                        ^ 
compilation terminated. 

The .Xresources file loads perfectly fine with:
$ xrdb ~/.Xresources
from a terminal. 

The validity of the relative path in the include directives is lost when loaded via krdb.


Reproducible: Always

Steps to Reproduce:
1. Have ~/.Xresources file containing #include is relative path.
2.
3.

Actual Results:  
No xrdb resources exist.

Expected Results:  
To load all xrdb resources from KDE and ~/.Xresources.
Comment 1 Brian 2015-09-15 17:44:53 UTC
Created attachment 94587 [details]
Include users home directory in path for xrdb

To allow processing of ~/.Xresources files containing include directives with relative paths, xrdb given the users home directory as a search path.
Comment 2 Justin Zobel 2021-03-09 07:29:39 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.