我在 下安装了一些应用程序/opt/myapp
,它有一个/opt/myapp/share
目录。当我完成安装时,它告诉我:
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
Run Code Online (Sandbox Code Playgroud)
将目录添加到该列表的正确方法是什么 - 系统范围内和作为单个用户?