On Sun, Nov 24, 2019 at 02:10:15AM GMT, Jonathan Thornburg wrote:
> In a fresh install of 6.6/amd64, if I login on a console as a non-root
> user and start X via 'startx', the X server tries to write log information
> in the file
>   $HOME/.local/share/xorg/Xorg.0.log
> 
> I have two questions:
> 1. Is there any way to change the directory
>      $HOME/.local/share/xorg/
>    in which the X server logfile is written?
> 2. This being OpenBSD, is there a Fine Manual in which this configuration
>    is documented?
> 
> None of
>   man Xorg
>   man Xserver
>   man startx
>   man xinit
>   man xorg.conf
>   man xorg.conf.d
>   man -k log|egrep '^X'
>   cd /etc/ && find . -type f | xargs fgrep share/xorg
>   cd /usr/X11R6/share/X11/xorg.conf.d/ \
>            && find . -type f | xargs fgrep share/xorg
>   cd /usr/X11R6/share/X11/ \
>            && find . -type f | xargs fgrep share/xorg
>   cd /usr/X11R6/share/ \
>            && find . -type f | xargs fgrep share/xorg
> or grepping my (minimal) /etc/x11/xorg.conf have thus far yielded any
> relevant info.
> 
> (The reason I'd like to change this directory is that in my setup
> $HOME/.local is a symlink to a different filesystem which may not yet
> be mounted at the time when 'startx' is run.)
> 

Hi Jonathan,

The right places, but the wrong string:

        $ man 1 Xorg
        [...]
        -logfile filename
                Use the file called filename as the Xorg server log
                file.  The default log file when running as root
                is /var/log/Xorg.n.log and for non root it is
                $XDG_DATA_HOME/xorg/Xorg.n.log where n is the display
                number of the Xorg server.  The default may be in
                a different directory on some platforms.  This
                option is only available when the server is run as
                root (i.e, with real- uid 0).
        [...]

The '.local/share' should have hinted at $XDG_DATA_HOME[0] :^)

[0] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Regards,

Raf

Reply via email to