Bug 94885 - XDG_DATA_HOME bad choice for log files
Summary: XDG_DATA_HOME bad choice for log files
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-11 00:05 UTC by Brian Bidulock
Modified: 2018-12-13 22:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Brian Bidulock 2016-04-11 00:05:35 UTC
When run as a user, Xorg places log files by default in $XDG_DATA_HOME/xorg/.  Also, when run as user, -logfile option cannot be used to specify a different location.  The file name does not include the host name.

The problem with this choice is that $XDG_DATA_HOME can be an nfs-mounted home directory. When a user logs in on multiple hosts using xinit, they all attempt to place log files of the same name in the same directory.  The user has no option that can be fed to xinit to change the log file location.

A better choice for a default would be $XDG_RUNTIME_DIR/xorg/.  The runtime directory us per-host just as /var/log, and is user specific and user accessible.
Comment 1 Michel Dänzer 2016-04-11 03:21:07 UTC
$XDG_RUNTIME_DIR isn't necessarily persistent though, e.g. on this system it's /run/user/$UID, which is a tmpfs filesystem.
Comment 2 GitLab Migration User 2018-12-13 22:35:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/499.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.