.Xdefaults ignored

Emanuel Haupt ehaupt at FreeBSD.org
Fri Dec 18 10:44:19 UTC 2009

Sandra Kachelmann <s.kachelmann at googlemail.com> wrote:
> On Thu, Dec 17, 2009 at 5:53 PM, Chris Rees <utisoft at googlemail.com>
> wrote:
> > 2009/12/17 Sandra Kachelmann <s.kachelmann at googlemail.com>:
> >> I recently noticed that xorg under FreeBSD ignores my ~/.Xdefaults
> >> file. I saw with truss that instead .Xdefaults-fqdn is being used:
> >>
> >> open("/home/skmn/.Xdefaults-prissy.local",O_RDONLY,06362252327) =
> >> 5 (0x5)
> >>
> >> No trace about ~/.Xdefaults
> >>
> >> Any idea why and if it can be changed?
> >>
> >> Sandra
> >
> > Does .Xdefaults-fqdn exist? If so, it read that instead, and that is
> > the sensible behaviour; the name is more specific. Try renaming or
> > deleting .Xdefaults-fqdn and see if it helps.
> Sorry, I should have mentioned before. As a consequence of xorg
> ignoring my .Xdefaults I've created .Xdefaults-fqdn and it's being
> used. That's not the problem. I'd like to change that behaviour though
> because pretty much all other Linux distros I've ever used before used
> .Xdefaults and most documentation you find about .Xdefaults entries
> point user to .Xdefaults in the homedir. Yeah I could create symlinks
> but I rather change it completely to .Xdefaults. I deploy a tarball
> with all my dotfiles on a Webserver and I don't want to rename
> .Xdefaults on every workstation I fetch the tarballs via script.
> I bet the search path of .Xdefaults is some sort of config option that
> can be changed somewhere. I tried searching in /usr/local/lib/X11, env
> startx, env xorg but no luck.
> Any idea where I can change it?

Just set the path in $XENVIRONMENT. For example:

export XENVIRONMENT="$HOME/.Xdefaults"


More information about the freebsd-ports mailing list