相关疑难解决方法(0)

将目录添加到 XDG_DATA_DIRS 的正确方法是什么?

我在 下安装了一些应用程序/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)

将目录添加到该列表的正确方法是什么 - 系统范围内和作为单个用户?

directory-structure xdg-open xdg

6
推荐指数
2
解决办法
1万
查看次数

标签 统计

directory-structure ×1

xdg ×1

xdg-open ×1