Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE with Xresources containing includes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
OlsonBG
n00b
n00b


Joined: 01 Sep 2015
Posts: 10
Location: Mississippi, USA

PostPosted: Mon Sep 14, 2015 1:27 am    Post subject: KDE with Xresources containing includes Reply with quote

I'm having trouble getting KDE4 to parse my ~/.Xresources file which contains a series of #include directives like so:
Code:
#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"


My include files are not found and ~/.xsession-errors shows
Code:

/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
Code:
$ xrdb ~/.Xresources

from a terminal, and also when using evilWM instead of KDE.

I can 'fix' this by specifying the full path in the #include directives, however, I'd like my Xresources file to be portable. My username is different on a few machines I use, and $HOME and '~' don't work inside Xresources. For now, I'm using a tiny script in ~/.kde4/Autostart to parse my Xresources.
Code:
$ cat ~/.kde4/Autostart/xrdb
#!/bin/sh

xrdb ~/.Xresources


I find this 'solution' ugly, so I was hoping someone knows of a way to get KDE4 to parse the ~/.Xresources file properly.

Thanks.
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 256
Location: Milan, IT

PostPosted: Mon Sep 14, 2015 7:03 am    Post subject: Reply with quote

Hi OlsonBG
It seems unable to locate that files
You can try modifying the include directives, pointing to an absolute path (I.E. #include "~/.Xresources.d/whatever")

Let me know
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4403

PostPosted: Mon Sep 14, 2015 7:21 am    Post subject: Reply with quote

https://bugs.kde.org/show_bug.cgi?id=325736
The problem is AFAIR that krdb parses the file on its own. The #include statements are completely missing, so including with absolute path is no solution.
And as you see from the report this issue was reported for kde4 and made its way into kde5...
Back to top
View user's profile Send private message
OlsonBG
n00b
n00b


Joined: 01 Sep 2015
Posts: 10
Location: Mississippi, USA

PostPosted: Tue Sep 15, 2015 5:56 pm    Post subject: Reply with quote

Thanks franzf, for posting the link to that bug.

I decided to post my own bug report (https://bugs.kde.org/show_bug.cgi?id=352762) since the topic doesn't really match. I also included a very small patch which fixes my problem. Any idea how to get the attention of a KDE developer to get their thoughts?

For now, I use the patch in my local repository copy of kde-base/systemsettings to get it working. I no longer need that script in my KDE Autostart directory, which makes me happy. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum