Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] xterm & .Xdefaults
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Tue Jun 21, 2011 12:17 am    Post subject: [SOLVED] xterm & .Xdefaults Reply with quote

Hi there,
Xterm is not running my .Xdefaults settings.
Code:
ferreirafm@mephisto ~ $ ls -la .Xdefaults
-rw-r--r-- 1 ferreirafm ferreirafm 196 Mar 31 11:09 .Xdefaults

Here goes what is has inside:
Code:
ferreirafm@mephisto ~ $ more .Xdefaults
XTerm*foreground: white
XTerm*background: black
XTerm*saveLines: 100000
XTerm*faceName: monospace
XTerm*faceSize: 11pt;
XTerm*boldFont: monospace
XTerm*scrollBar: true
XTerm*rightScrollBar: true

Is has something to do with launching Xterm from inside kde??
Any clues are appreciated.
ferreirafm


Last edited by ferreirafm on Tue Jun 21, 2011 1:23 am; edited 1 time in total
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Tue Jun 21, 2011 12:27 am    Post subject: Reply with quote

IIRC it should be 'xterm*' not 'XTerm*'.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Tue Jun 21, 2011 12:51 am    Post subject: Reply with quote

Hi avx,
Thanks for helping. Swapping from upper to lower case din't solve the problem.
I'm afraid it has something to do with kde, but not sure. From time to time my keyboard gets crazy and seems to loose its character mapping.
So, I give up of using Konsole and start xterm. Policykit may be...
Any other ideas?
ferreirafm
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Tue Jun 21, 2011 1:04 am    Post subject: Reply with quote

Does this work?
Code:

cd ~
mv .Xdefaults .Xresources
ln -s .Xresources .Xdefaults
ln -s .xinitrc .Xclients

and put this in the beginning of your .xinitrc:
Code:

#!/bin/bash

if [ -f $HOME/.Xdefaults ]; then
  xrdb -merge $HOME/.Xdefaults
fi

Note: Backup these files before.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Tue Jun 21, 2011 1:22 am    Post subject: Reply with quote

Hi keenblade,
That's did the trick. Could you explain whats going on?
Thanks,
ferreirafm

P.S.: xterm always open inside the Documents directory instead of ~/. How can I fix it?
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Tue Jun 21, 2011 1:57 am    Post subject: Reply with quote

ferreirafm,
.Xdefaults file is deprecated and .Xresources is used nowadays. But for compatibility, .Xdefaults file is symlinked to Xresources.
Since you use kde, xterm always will be open inside the Documents directory instead of ~/. So you need to change path in kde within "System Preferences -> User Preferences -> Paths -> Documents
Menu names might not be the same, since I can't remember exactly.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Tue Jun 21, 2011 4:40 pm    Post subject: Reply with quote

keenblade,
Thank yo for the .Xdefault explanation and also for the tips on kde paths.
All the Best,
ferreirafm
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