Skip to content

fix application directory resolution for NixOS - #4

Merged
itsjfx merged 2 commits into
itsjfx:masterfrom
tom-wackrow:fix/nixos-compat
Jun 11, 2026
Merged

fix application directory resolution for NixOS#4
itsjfx merged 2 commits into
itsjfx:masterfrom
tom-wackrow:fix/nixos-compat

Conversation

@tom-wackrow

Copy link
Copy Markdown
Contributor

Description

Fixes application directory resolution for NixOS

The Problem

The implementation relies on hard coded paths

On NixOS, the standard paths do not exist. instead, NixOS relies on XDG_DATA_DIRS environment variable. As XDG_DATA_DIRS was ignored, the directory lookup returned an empty list.

Solution

  • XDG_DATA_DIRS is checked first
  • The original hard coded paths are kept as fallbacks in the case that XDG_DATA_DIRS lookup fails.

@itsjfx

itsjfx commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Thanks! :)

@itsjfx
itsjfx merged commit 8f054fb into itsjfx:master Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants