Re: X11 forwarding doesn't read xinitrc?
From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 12/26/03
- Previous message: Rick Measham: "X11 forwarding doesn't read xinitrc?"
- In reply to: Rick Measham: "X11 forwarding doesn't read xinitrc?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 26 Dec 2003 00:40:54 GMT
On Fri, 26 Dec 2003 11:30:45 +1100, Rick Measham wrote:
> It appears that when forwarding X11, the local or remote xinitrc isn't
> read. I am forwarding from a RedHat 9 box to my Mac X.3.
>
> When using the mac, I need to run two xmodmap commands to get the keys
> to work as expected (without them the + and * keys do forward and
> reverse select in certain KDE apps).
>
> I have tried adding the correct commands to both the xinitrc on the mac
> and the xinitrc on the RH box. I've also added them to the .Xmodmap
> files to no avail.
>
> Should one (or both) these files be taking effect?
>
> Is there any way to automatically execute these two commands when an X11
> connection is received from the mac? (or even some file that gets
> executed when an X11 connection is opened from anywhere!)
Your login script, ~/.bash_profile, could grep ps aux for your remote
login process and parse it to set $DISPLAY and do something like
xrdb -merge $HOME/.Xresources
example:
ps aux | grep -c bittwister
if [ $_rtn -gt 0 ] ; then
export DISPLAY=wb:0
xrdb -merge $HOME/.Xresources
fi
For some light reading, http://www.tldp.org/LDP/abs/html/index.html
- Previous message: Rick Measham: "X11 forwarding doesn't read xinitrc?"
- In reply to: Rick Measham: "X11 forwarding doesn't read xinitrc?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|