appimage-builder icon indicating copy to clipboard operation
appimage-builder copied to clipboard

Built images are not respecting XDG spec when it comes to default XDG_DATA_DIRS issue

Open DarkFenX opened this issue 2 years ago • 1 comments

XDG spec states:

If $XDG_DATA_DIRS is either not set or empty, a value equal to /usr/local/share/:/usr/share/ should be used.

Appimage itself doesn't seem to do that: https://github.com/AppImageCrafters/appimage-builder/blob/main/appimagebuilder/modules/setup/apprun_2/apprun2.py#L157-L187

Appimage builder, if system variable is not set or empty, should set its value to /usr/local/share/:/usr/share/ (system path, not bundled path), before changing its value the way it does in _configure_runtime_environment() to refer bundled paths as well. This way bundled apps will receive path to system directories even if XDG_DATA_DIRS is not set/empty.

DarkFenX avatar Dec 06 '23 02:12 DarkFenX

Agreed this is affecting my app as well.

gholmann16 avatar Jul 28 '24 21:07 gholmann16