-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on the usage of XDG_DATA_DIRS #1187
Comments
Thanks for reporting the issue so clearly. This is a indeed a pain point, in the For reference, this is the reason why this was added in the first place:
@HosameldinMohamed just a curiosity, did you ever experienced something like that? |
Thanks for the explanation @traversaro |
No, for me it seems fine, here's my
However I am using Interestingly, I have an |
I can confirm I did not install any of those and by default my system does not have the |
Interesting, I wonder that if this packages set the |
Probably that's what you are looking for https://github.com/flatpak/flatpak/blob/main/profile/flatpak.sh |
Indeed, the line https://github.com/flatpak/flatpak/blob/3a93ef4842f7dac3eed02e2a45091cd358162b6a/profile/flatpak.sh#L25 seems to do almost exactly that. |
With @RiccardoZuppetti we experienced another nasty bug relatedo to this, in a Docker image in which
Better to finally fix this before we waste more time on it. |
Recently I have tried to setup a
robotology-superbuild
install on my system (Arch Linux with5.18.7-arch1-1
kernel).After sourcing the
build/install/share/robotology-superbuild/setup.sh
file, as per https://github.com/robotology/robotology-superbuild#configure-your-environment, I found out that my system could not run any UI dialog reliably anymore as many of the png files associated to icons could not be found. This was causing erratic crashes or strange behaviors.After investigating a bit I found that the
setup.sh
file sets theXDG_DATA_DIRS
as follows:robotology-superbuild/cmake/template/setup.sh.in
Line 17 in bab995b
Unfortunately, in some systems, as the one I am using apparently, if the
XDG_DATA_DIRS
is not set or empty, a default value of/usr/local/share/:/usr/share/
is assumed. However, when theXDG_DATA_DIRS
is populated by thesetup.sh
, given that it is empty, the new value will just contain<path_to_ROBOTOLOGY_SUPERBUILD_INSTALL_PREFIX>/share
, i.e. the reference to/usr/local/share
and/usr/share
is missing.Of course, this seems to be very system-dependent and might be easily solved if the user exports
XDG_DATA_DIRS
correctly. However, on some systems this might create strange behaviors and it is difficult to track them down and associate them with therobotology-superbuild
installation.Wondering if you could suggest anything to mitigate the problem, e.g. adding even a simple disclaimer in the README.
Thanks
cc @traversaro
The text was updated successfully, but these errors were encountered: