Page 1 of 1

Problem with .xinitrc ?

Posted: Fri 26 Aug 2005, 19:45
by Bruce B
I'm submitting what I think is a long standing bug in .xinitrc

I think the lines that read xrdb -merge need to read xrdb -merge -nocpp in order to work.

Walt H seems to be of a similiar opinion. Refer to this thread for additional details

http://www.murga.org/%7Epuppy/viewtopic.php?t=1789

But I'm probably wrong :oops:

Re: Problem with .xinitrc ?

Posted: Fri 26 Aug 2005, 22:54
by Walt H
Bruce B wrote:I think the lines that read xrdb -merge need to read xrdb -merge -nocpp in order to work.
This does seem to be true if you want the changes to remain in effect each time you boot up Puppy. Otherwise, you have to run the xrdb -nocpp -merge command each time you start up Puppy before launching the application you changed. Would running it as xrdb -merge -nocpp make any difference here. I don't know enough to know whether that's a dumb question. :?

Re: Problem with .xinitrc ?

Posted: Sat 27 Aug 2005, 01:54
by Bruce B
Walt H wrote:
Bruce B wrote:Would running it as xrdb -merge -nocpp make any difference here. I don't know enough to know whether that's a dumb question. :?
Yes. With the -nocpp in .xinitrc, .Xdefaults merge and without it the don't on my computer.

Re: Problem with .xinitrc ?

Posted: Sat 27 Aug 2005, 05:09
by Walt H
Bruce B wrote:
Walt H wrote:Would running it as xrdb -merge -nocpp make any difference here. I don't know enough to know whether that's a dumb question. :?
Yes. With the -nocpp in .xinitrc, .Xdefaults merge and without it the don't on my computer.
I didn't phrase my question very well.:oops: What I'm wondering is whether it matters if the -nocpp flag comes before or after the -merge flag. I have it first in my.xinitrc file (xrdb -nocpp -merge ~/.Xresources) rather than second (xrdb -merge -nocpp ~/.Xresources). I understand that the -nocpp flag needs to be present in .xinitrc for the changes to remain in effect each time you start Puppy. Hopefully, my wording is a bit clearer.

Posted: Sat 27 Aug 2005, 05:48
by Bruce B
Frankly, Walt I didn't understand. I doubt it would matter the sequence. I guess my habit is to work from left to right and that's why I inserted the flag where I did.

The way I learned about xrdb was like this:

# xrdb --help

If you read the --help output there is nothing to indicate the sequence you are talking about is a factor in the functionality of the two flags.

Also as I read .xinitrc it is supposed to automatically merge .Xresources, meaning to say, the only change I made to it was add the -nocpp

Well, also I decided to try it out for starting my mosted used app on boot which is mrxvt, and it works great for that.

Re: Problem with .xinitrc ?

Posted: Sat 27 Aug 2005, 12:36
by BarryK
Bruce B wrote:I'm submitting what I think is a long standing bug in .xinitrc

I think the lines that read xrdb -merge need to read xrdb -merge -nocpp in order to work.

Walt H seems to be of a similiar opinion. Refer to this thread for additional details

http://www.murga.org/%7Epuppy/viewtopic.php?t=1789

But I'm probably wrong :oops:
So, are you saying the this code in .xinitrc:

Code: Select all

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi
both xrdb lines should have the -nocpp option inserted?

Re: Problem with .xinitrc ?

Posted: Sat 27 Aug 2005, 17:20
by Bruce B
BarryK wrote:
Bruce B wrote:I'm submitting what I think is a long standing bug in .xinitrc

I think the lines that read xrdb -merge need to read xrdb -merge -nocpp in order to work.

Walt H seems to be of a similiar opinion. Refer to this thread for additional details

http://www.murga.org/%7Epuppy/viewtopic.php?t=1789

But I'm probably wrong :oops:
So, are you saying the this code in .xinitrc:

Code: Select all

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi
both xrdb lines should have the -nocpp option inserted?
That is precisely what I'm saying

Posted: Sat 27 Aug 2005, 18:58
by BarryK
Okay, will do.