我在/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
什么是正确的方式添加目录到该列表系统范围内,作为一个单一的用户?
发布于 2019-04-27 02:48:31
我不确定整个系统..。但是作为一个用户(这是可访问的系统范围的),我在我的~/.profile
文件中包括了这一行。
XDG_DATA_DIRS="/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
你可以用它来满足你自己的需要。
https://unix.stackexchange.com/questions/471327
复制相似问题