Sample Header Ad - 728x90

What's the right way to add directories to XDG_DATA_DIRS?

18 votes
2 answers
59379 views
I've installed some app under /opt/myapp, which has a /opt/myapp/share directory. As I finish installing, it tells me: Note that '/opt/myapp/share' is not in the search path set by the XDG_DATA_HOME and XDG_DATA_DIRS environment variables, so applications may not be able to find it until you set them. The directories currently searched are: - /usr/share/gnome - /home/joeuser/.local/share/flatpak/exports/share - /var/lib/flatpak/exports/share - /usr/local/share - /usr/share What's the right way to add directories to that list - system-wide and as a single user?
Asked by einpoklum (10753 rep)
Sep 25, 2018, 01:24 PM
Last activity: Feb 17, 2024, 02:09 PM