best way to start desired X clients on login with xorg-server?
rcobbe at pobox.com
Sat Jun 1 05:20:34 UTC 2019
[Responding to the list this time]
On Wed, May 29, 2019 at 04:10:56AM -0400, Richard L. Hamilton wrote:
> While the system xinitrc does plenty you don't want, it might still be
> worth looking at; having an ~/.xinitrc.d directory with separate files
> for different setup actions, running xmodmap if the files for it are
> present, etc, may be useful.
Ah, yes, I'd forgotten about that; thanks for the reminder!
> One thing to add before starting urxvt if you want color to work!!
> export TERMINFO=/opt/local/share/terminfo
> because the rxvt-unicode-256color entry is only there, not in
> /usr/share/terminfo. I noticed that as soon as I installed urxvt and ran
> the system version of vi or vim (as opposed to the MacPorts version,
> which will look in the MacPorts terminfo directory without being told).
Huh -- there's something weird going on here. As you say, that terminfo
entry is only in /opt/local/share/terminfo, not under /usr/share/terminfo.
However, I was able to start /usr/bin/vi in urxvt, with
TERM=rxvt-unicode-256-color, *without* setting TERMINFO, and I'm getting
color just fine.
One other thing: it is possible to set XDG_CONFIG_HOME in the X server's
environment? I'm finding that applications that I add to the
"Applications" menu aren't seeing that variable, despite it being set in
one of the files in .xinitrc.d. (And I know that setting is happening for
the clients started later in that file, because I'm getting the expected
font in urxvt. Since xquartz is also started in that file, I'd expect it
to pick up that variable as well.)
I can edit the command in the Applications menu entry to be
/usr/bin/env LC_CTYPE=en_US.UTF-8 XDG_CONFIG_HOME=/Users/cobbe/etc /opt/lcoal/bin/urxvt
and this works just fine, but I'm wondering if there's a more elegant way
to set that up.
More information about the macports-users