我当前使用哪个 xdg-desktop-portal?

blu*_*ray 5 command-line gnome debian xdg

在我的机器上,我有多个 xdg-desktop-portal 实例:

$ ls -la /usr/share/xdg-desktop-portal/portals
.rw-r--r-- 100 root 23 Mar 14:48 gnome-keyring.portal
.rw-r--r--  99 root 20 Mar 02:25 gnome-shell.portal
.rw-r--r-- 548 root 18 Oct  2022 gnome.portal
.rw-r--r-- 495 root 29 Nov  2022 gtk.portal
Run Code Online (Sandbox Code Playgroud)

我无法确定当前正在使用哪一个。

我可以使用什么命令来查找我正在使用哪个 xdg-desktop-portal?

Ste*_*itt 5

当前没有\xe2\x80\x99t一个正在使用的门户:门户通常处理可用接口的子集。因此在我的系统上,

\n\n

当前使用的桌面环境由环境变量决定XDG_CURRENT_DESKTOP

\n

因此,给定的请求将由可用门户之一处理,具体取决于当前的桌面环境和请求的界面。在大多数设置中,没有一个门户重叠,并且每个门户都将酌情使用 \xe2\x80\x94,\xe2\x80\x99 之间没有任何可供选择的。

\n