ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 6353] Wireshark should respect freedesktop.org XDG Base Di

Date: Sun, 18 May 2014 23:35:25 +0000

changed bug 6353

What Removed Added
OS Gentoo All

Comment # 9 on bug 6353 from
The spec says:

    There is a single base directory relative to which user-specific
configuration files should be written. This directory is defined by the
environment variable $XDG_CONFIG_HOME.

and later says:

    There is a set of preference ordered base directories relative to which
configuration files should be searched. This set of directories is defined by
the environment variable $XDG_CONFIG_DIRS.

        ...

    $XDG_CONFIG_DIRS defines the preference-ordered set of base directories to
search for configuration files in addition to the $XDG_CONFIG_HOME base
directory. The directories in $XDG_CONFIG_DIRS should be seperated with a colon
':'.

    If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg
should be used.

/etc/xdg does not make much sense as a location for "user-specific
configuration files"; is the intent here that it be used for system-wide
configuration files?  The spec says

    Specifications may reference this specification by specifying the location
of a configuration file as $XDG_CONFIG_DIRS/subdir/filename. This implies that:

    Default configuration files should be installed to
$sysconfdir/xdg/subdir/filename with $sysconfdir defaulting to /etc.

    A user specific version of the configuration file may be created in
$XDG_CONFIG_HOME/subdir/filename, taking into account the default value for
$XDG_CONFIG_HOME if $XDG_CONFIG_HOME is not set.

        ...

    A specification that refers to $XDG_DATA_DIRS or $XDG_CONFIG_DIRS should
define what the behaviour must be when a file is located under multiple base
directories. It could, for example, define that only the file under the most
important base directory should be used or, as another example, it could define
rules for merging the information from the different files.

which seems to suggest that one possible behavior is that a user-specific
version of a file, in $XDG_CONFIG_HOME/subdir/filename, could override a
system-wide version.  A system-wide version would be found by searching under
$XDG_CONFIG_DIRS, or under $sysconfdir if $XDG_CONFIG_DIRS isn't set.


You are receiving this mail because:
  • You are watching all bug changes.