Skip to content

Add XDG_UTILS_OVERRIDE_DE and tool specific overrides

Slatian requested to merge slatian/xdg-utils:issue-240-override-desktop into master

This will allow manually specifying the Desktop environment.

Adds the following environment variables to all xdg-utils via the detectDE() function:

  • XDG_UTILS_OVERRIDE_DE
  • XDG_UTILS_<TOOL>_OVERRIDE_DE

Where <TOOL> is the part after xdg- in uppercase, i.e. XDG_UTILS_OPEN_OVERRIDE_DE.

Setting one of these variables will override DE directly with the given value, allowing easier debugging and temporarily working around issues.

For now I've left it intentionally undocumented as such behavior would best be described in a xdg-utils manpage which currently does not exist.

Fixes #240

Merge request reports