Hyprland Home Manager module breaks portal discovery for other desktop environments

I am running Cosmic, Hyprland, and Plasma.
When I login to Cosmic, it fails to find xdg.portal.config.COSMIC.
If I only run Cosmic it works fine.

I found the root cause to be that Hyprlands Home Manager modules unconditionally adds xdg-desktop-portal-hyprland to xdg.portal.extraPortals:

xdg.portal = {
  enable = cfg.finalPortalPackage != null;
  extraPortals = lib.mkIf (cfg.finalPortalPackage != null) [ cfg.finalPortalPackage ];
  configPackages = lib.mkIf (cfg.finalPackage != null) (lib.mkDefault [ cfg.finalPackage ]);
};

This places a portal in a different directory that the other portals

/etc/profiles/per-user/rasmus/share:
ī—æ portals  󱁻 hyprland-portals.conf
/run/current-system/sw/share:
ī—æ portals  󱁻 cosmic-portals.conf  󱁻 hyprland-portals.conf  󱁻 kde-portals.conf

The problem is that when xdg-desktop-portal scans for portals it only searches the first directory it finds in XDG_DATA_DIRS.
The first it finds is Home Managers per user.

echo $XDG_DATA_DIRS
...:/etc/profiles/per-user/rasmus/share:...:/run/current-system/sw/share:...

However, it failes after not finding cosmic-portals.conf in /etc/profiles/per-user/rasmus/share.

systemctl --user stop xdg-desktop-portal.service                                                                                                                   
XDG_CURRENT_DESKTOP=COSMIC G_MESSAGES_DEBUG=all \
  /nix/store/vzkn1a38x6fg66qkn29pbfbvrlznjmjn-xdg-desktop-portal-1.20.4/libexec/xdg-desktop-portal 2>&1 &

This gives

load portals from /etc/profiles/per-user/rasmus/share/xdg-desktop-portal/portals
loading /etc/profiles/per-user/rasmus/share/xdg-desktop-portal/portals/hyprland.portal
Requested cosmic.portal is unrecognized
Requested gtk.portal is unrecognized

Workaround

I got it to work by placing cosmics portal in home manager.

    xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-cosmic ];

Discussion

Should the Hyprland HM module manage portals at all, given that it causes this split between per-user and system profiles?

And should xdg-desktop-portal scan all directories in XDG_DATA_DIRS for .portal files rather than stopping at the first directory that contains any?

1 Like

You can just forcibly disable the portals in h-m as well, if that’s really the behaviour. But h-m has no way to know if you’re intending to manage portals at the system level or not, outside of some special cases.

Yes. You are correct that disabling portals in HM also fixes the problem.

  xdg.portal.enable = lib.mkForce false;

However I would also classify that as a workaround.

These are the solution I can think of from best to worst

  1. Get xdg-desktop-portal to scan all directories in XDG_DATA_DIRS until it finds a match(not just a random portal).
  2. Get NixOS and HM to place place their portals in a common location and place that location early in XDG_DATA_DIRS.
  3. Add all needed portal packages to HM extraPortals so they all land in the per-user profile together
  4. Disable HM portal management entirely with mkForce false so the per-user portal directory stays empty
  5. The HM Hyprland module should not install portal binaries via HM at all, leaving portal management entirely to the NixOS system modules

That can’t work since we need to differentiate user and system config.

Seems needlessly redundant. IMO you’re managing portals at the sstem level, so duplicating it in hm seems unnecessary in your case, which is why I think option 4 isn’t a workaround.

Of course if you can patch and send a PR upstream, that’s the cleanest option.

2 Likes

Probably a question for the upstream xdg-desktop-portal project, not NixOS or home-manager. The docs themselves are not particularly illuminating as to the intended behavior, simply saying:

For a new portal backend… to be discoverable…

  • …
  • Install foo.portal file under {DATADIR}/xdg-desktop-portal/portals. Usually, {DATADIR} is /usr/share…
  • …

It looks like this is a known issue in home manger.

Their temporary solution is

  xdg.portal.extraPortals = lib.mkForce osConfig.xdg.portal.extraPortals;

I made a bug report in upstream.

Having now read the home-manager Github issue that you sent, the reporter actually points out that this behavior seems to arise because of a nixpkgs patch to xdg-desktop-portal (the package, not module) that forces single-directory search when NIX_XDG_DESKTOP_PORTAL_DIR is set. (i.e lookup bypasses XDG_* vars entirely). The report you linked details this more clearly

2 Likes

(Hi, reporter of the home-manager GitHub issue here)

As you mentioned, I’m pretty certain this is NixOS-specific: unless you’ve gone out of your way to avoid it, NixOS runs xdg-desktop-portal-dir with the NIX_XDG_DESKTOP_PORTAL_DIR environment variable you’ve mentioned set, which does indeed replace the XDG_* path lookup entirely. So reporting this upstream to xdg-desktop-portal is not helpful (I’ve left a comment there because the xdg-desktop-portal folks may get quite confused if they start debugging this without knowing about that patch…)

I think there are two ways of fixing this:

  • Confirm NixOS runs xdg-desktop-portal with XDG_DATA_* set in such a way that NIX_XDG_DESKTOP_PORTAL_DIR is actually unnecessary (both with and without home-manager), then drop that variable (and the patch adding support for it). I think that’s the right fix, but I haven’t found the time to go digging around to confirm it doesn’t break anything and send PRs.
  • Alternatively, have home-manager link the system portals (like my workaround mentioned in the home-manager bug report does). I think that’s a worse fix, especially since the way I’m suggesting on the bug relies on osConfig, which is not available if you’re running home-manager ā€œstandaloneā€

I think the problem is that I use home manager as a module and it over writes NIX_XDG_DESKTOP_PORTAL_DIR. It happends on line 178-180.

  systemd.user.sessionVariables = {
    NIX_XDG_DESKTOP_PORTAL_DIR = portalsDir;
  };

As @marienz said I think the fix is removing NIX_XDG_DESKTOP_PORTAL_DIR

in src/xdp-portal-impl.c it should iterate over all dirs in XDG_DATA_DIRS and both /etc/profiles/per-user/rasmus/share and /run/current-system/sw/share are in XDG_DATA_DIRS.
This is line 381-390.

 /* $XDG_DATA_DIRS/xdg-desktop-portal/portals */
  dirs = g_get_system_data_dirs ();

  for (iter = dirs; iter != NULL && *iter != NULL; iter++)
    {
      g_autofree char *dir = NULL;

      dir = g_build_filename (*iter, XDP_SUBDIR, "portals", NULL);
      load_installed_portals_dir (portals, dir, opt_verbose);
    }

I will try and remove the patch and see if that fixes the problem on my end.

I just test this by removing every line in nixpkgs and home manager that has NIX_XDG_DESKTOP_PORTAL_DIR and it works.

I tested it in Cosmic I will later test with Hyprland and Plasma.

It now searches every directory in XDG_DATA_DIRS.

xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.config/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.config/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/nix/store/fj4lxvhbbd0zshf1r9hhg0pr0hw49mwn-stylix-kde-config/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/nix/store/fj4lxvhbbd0zshf1r9hhg0pr0hw49mwn-stylix-kde-config/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.local/share/flatpak/exports/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.local/share/flatpak/exports/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/var/lib/flatpak/exports/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/var/lib/flatpak/exports/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.nix-profile/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.nix-profile/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/nix/profile/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/nix/profile/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.local/state/nix/profile/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.local/state/nix/profile/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/etc/profiles/per-user/rasmus/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/etc/profiles/per-user/rasmus/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/nix/var/nix/profiles/default/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/nix/var/nix/profiles/default/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/run/current-system/sw/etc/xdg/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/run/current-system/sw/etc/xdg/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/etc/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/etc/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.local/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/home/rasmus/.local/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.562: Looking for portals configuration in ā€˜/nix/store/vzkn1a38x6fg66qkn29pbfbvrlznjmjn-xdg-desktop-portal-1.20.4/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/store/vzkn1a38x6fg66qkn29pbfbvrlznjmjn-xdg-desktop-portal-1.20.4/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/store/k8a44404day9i86sxkjm0gq5ymlvyh06-gsettings-desktop-schemas-50.1/share/gsettings-schemas/gsettings-desktop-schemas-50.1/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/store/k8a44404day9i86sxkjm0gq5ymlvyh06-gsettings-desktop-schemas-50.1/share/gsettings-schemas/gsettings-desktop-schemas-50.1/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/store/m2kqwy3rb25dy5zi5sjl4f6raryb67y9-pipewire-1.6.5/share/gsettings-schemas/pipewire-1.6.5/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/store/m2kqwy3rb25dy5zi5sjl4f6raryb67y9-pipewire-1.6.5/share/gsettings-schemas/pipewire-1.6.5/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/store/327wv5jm0hf22lbchz4xpz97i0j5c17w-desktops/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/store/327wv5jm0hf22lbchz4xpz97i0j5c17w-desktops/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/home/rasmus/.local/share/flatpak/exports/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/home/rasmus/.local/share/flatpak/exports/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/var/lib/flatpak/exports/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/var/lib/flatpak/exports/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/home/rasmus/.nix-profile/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/home/rasmus/.nix-profile/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/profile/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/profile/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/home/rasmus/.local/state/nix/profile/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/home/rasmus/.local/state/nix/profile/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/etc/profiles/per-user/rasmus/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/etc/profiles/per-user/rasmus/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/var/nix/profiles/default/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/nix/var/nix/profiles/default/share/xdg-desktop-portal/portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: Looking for portals configuration in ā€˜/run/current-system/sw/share/xdg-desktop-portal/cosmic-portals.conf’
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /home/rasmus/.local/share/xdg-desktop-portal/portals
GLib-GIO-DEBUG: 22:36:19.563: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ā€˜gio-vfs’
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /nix/store/vzkn1a38x6fg66qkn29pbfbvrlznjmjn-xdg-desktop-portal-1.20.4/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /nix/store/k8a44404day9i86sxkjm0gq5ymlvyh06-gsettings-desktop-schemas-50.1/share/gsettings-schemas/gsettings-desktop-schemas-50.1/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /nix/store/m2kqwy3rb25dy5zi5sjl4f6raryb67y9-pipewire-1.6.5/share/gsettings-schemas/pipewire-1.6.5/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /nix/store/327wv5jm0hf22lbchz4xpz97i0j5c17w-desktops/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /home/rasmus/.local/share/flatpak/exports/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /var/lib/flatpak/exports/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /home/rasmus/.nix-profile/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.563: load portals from /nix/profile/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.564: load portals from /home/rasmus/.local/state/nix/profile/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.564: load portals from /etc/profiles/per-user/rasmus/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.565: loading /etc/profiles/per-user/rasmus/share/xdg-desktop-portal/portals/hyprland.portal
xdg-desktop-portal-DEBUG: 22:36:19.565: load portals from /nix/var/nix/profiles/default/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.565: load portals from /run/current-system/sw/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.565: loading /run/current-system/sw/share/xdg-desktop-portal/portals/gnome-keyring.portal
xdg-desktop-portal-DEBUG: 22:36:19.566: loading /run/current-system/sw/share/xdg-desktop-portal/portals/gtk.portal
xdg-desktop-portal-DEBUG: 22:36:19.566: loading /run/current-system/sw/share/xdg-desktop-portal/portals/cosmic.portal
xdg-desktop-portal-DEBUG: 22:36:19.566: loading /run/current-system/sw/share/xdg-desktop-portal/portals/hyprland.portal
xdg-desktop-portal-DEBUG: 22:36:19.566: Skipping duplicate source hyprland
xdg-desktop-portal-DEBUG: 22:36:19.566: load portals from /usr/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.566: load portals from /var/lib/flatpak/exports/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.566: load portals from /home/rasmus/.local/share/flatpak/exports/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.566: load portals from /nix/store/vzkn1a38x6fg66qkn29pbfbvrlznjmjn-xdg-desktop-portal-1.20.4/share/xdg-desktop-portal/portals
xdg-desktop-portal-DEBUG: 22:36:19.570: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.570: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.570: Using gtk.portal for org.freedesktop.impl.portal.Lockdown (config)
GLib-GIO-DEBUG: 22:36:19.571: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals
GLib-GIO-DEBUG: 22:36:19.571: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ā€˜gio-memory-monitor’
xdg-desktop-portal-DEBUG: 22:36:19.571: providing portal org.freedesktop.portal.MemoryMonitor
GLib-GIO-DEBUG: 22:36:19.571: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals
GLib-GIO-DEBUG: 22:36:19.571: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ā€˜gio-power-profile-monitor’
xdg-desktop-portal-DEBUG: 22:36:19.571: providing portal org.freedesktop.portal.PowerProfileMonitor
GLib-GIO-DEBUG: 22:36:19.571: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals
GLib-GIO-DEBUG: 22:36:19.572: _g_io_module_get_default: Found default implementation networkmanager (GNetworkMonitorNM) for ā€˜gio-network-monitor’
xdg-desktop-portal-DEBUG: 22:36:19.572: providing portal org.freedesktop.portal.NetworkMonitor
GLib-GIO-DEBUG: 22:36:19.575: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ā€˜gsettings-backend’
dconf-DEBUG: 22:36:19.575: watch_fast: ā€œ/system/proxy/ā€ (establishing: 0, active: 0)
dconf-DEBUG: 22:36:19.575: watch_fast: ā€œ/system/proxy/http/ā€ (establishing: 0, active: 0)
dconf-DEBUG: 22:36:19.575: watch_fast: ā€œ/system/proxy/https/ā€ (establishing: 0, active: 0)
dconf-DEBUG: 22:36:19.575: watch_fast: ā€œ/system/proxy/ftp/ā€ (establishing: 0, active: 0)
dconf-DEBUG: 22:36:19.575: watch_fast: ā€œ/system/proxy/socks/ā€ (establishing: 0, active: 0)
dconf-DEBUG: 22:36:19.575: unwatch_fast: ā€œ/system/proxy/ā€ (active: 0, establishing: 1)
dconf-DEBUG: 22:36:19.575: unwatch_fast: ā€œ/system/proxy/http/ā€ (active: 0, establishing: 1)
dconf-DEBUG: 22:36:19.575: unwatch_fast: ā€œ/system/proxy/https/ā€ (active: 0, establishing: 1)
dconf-DEBUG: 22:36:19.575: watch_established: ā€œ/system/proxy/ā€ (establishing: 0)
dconf-DEBUG: 22:36:19.575: unwatch_fast: ā€œ/system/proxy/ftp/ā€ (active: 0, establishing: 1)
dconf-DEBUG: 22:36:19.575: unwatch_fast: ā€œ/system/proxy/socks/ā€ (active: 0, establishing: 1)
dconf-DEBUG: 22:36:19.575: watch_established: ā€œ/system/proxy/http/ā€ (establishing: 0)
dconf-DEBUG: 22:36:19.576: watch_established: ā€œ/system/proxy/https/ā€ (establishing: 0)
dconf-DEBUG: 22:36:19.576: watch_established: ā€œ/system/proxy/ftp/ā€ (establishing: 0)
dconf-DEBUG: 22:36:19.576: watch_established: ā€œ/system/proxy/socks/ā€ (establishing: 0)
pxbackend-DEBUG: 22:36:19.576: px_config_sysconfig_set_config_file: Could not read file /etc/sysconfig/proxy
pxbackend-DEBUG: 22:36:19.576: Active config plugins:
pxbackend-DEBUG: 22:36:19.576:  - config-env
pxbackend-DEBUG: 22:36:19.576:  - config-xdp
pxbackend-DEBUG: 22:36:19.576:  - config-kde
pxbackend-DEBUG: 22:36:19.576:  - config-gnome
pxbackend-DEBUG: 22:36:19.576:  - config-sysconfig
pxbackend-DEBUG: 22:36:19.577: px_manager_constructed: Up and running
GLib-GIO-DEBUG: 22:36:19.577: _g_io_module_get_default: Found default implementation libproxy (GLibproxyResolver) for ā€˜gio-proxy-resolver’
xdg-desktop-portal-DEBUG: 22:36:19.577: providing portal org.freedesktop.portal.ProxyResolver
xdg-desktop-portal-DEBUG: 22:36:19.577: providing portal org.freedesktop.portal.Trash
xdg-desktop-portal-DEBUG: 22:36:19.577: providing portal org.freedesktop.portal.GameMode
xdg-desktop-portal-DEBUG: 22:36:19.578: providing portal org.freedesktop.portal.Realtime
xdg-desktop-portal-DEBUG: 22:36:19.578: Found ā€˜cosmic;gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.578: Using cosmic.portal for org.freedesktop.impl.portal.Settings (config)
xdg-desktop-portal-DEBUG: 22:36:19.578: Using gtk.portal for org.freedesktop.impl.portal.Settings (config)
xdg-desktop-portal-DEBUG: 22:36:19.579: providing portal org.freedesktop.portal.Settings
xdg-desktop-portal-DEBUG: 22:36:19.579: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.579: Using cosmic.portal for org.freedesktop.impl.portal.FileChooser (config)
xdg-desktop-portal-DEBUG: 22:36:19.579: providing portal org.freedesktop.portal.FileChooser
xdg-desktop-portal-DEBUG: 22:36:19.579: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.579: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.579: Using gtk.portal for org.freedesktop.impl.portal.AppChooser (config)
xdg-desktop-portal-DEBUG: 22:36:19.580: providing portal org.freedesktop.portal.OpenURI
xdg-desktop-portal-DEBUG: 22:36:19.580: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.580: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.580: Using gtk.portal for org.freedesktop.impl.portal.Print (config)
xdg-desktop-portal-DEBUG: 22:36:19.580: providing portal org.freedesktop.portal.Print
xdg-desktop-portal-DEBUG: 22:36:19.580: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.580: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.580: Using gtk.portal for org.freedesktop.impl.portal.Notification (config)
xdg-desktop-portal-DEBUG: 22:36:19.581: providing portal org.freedesktop.portal.Notification
xdg-desktop-portal-DEBUG: 22:36:19.581: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.581: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.581: Using gtk.portal for org.freedesktop.impl.portal.Inhibit (config)
xdg-desktop-portal-DEBUG: 22:36:19.581: providing portal org.freedesktop.portal.Inhibit
xdg-desktop-portal-DEBUG: 22:36:19.581: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.581: Using cosmic.portal for org.freedesktop.impl.portal.Access (config)
xdg-desktop-portal-DEBUG: 22:36:19.582: providing portal org.freedesktop.portal.Location
xdg-desktop-portal-DEBUG: 22:36:19.584: providing portal org.freedesktop.portal.Camera
xdg-desktop-portal-DEBUG: 22:36:19.584: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.584: Using cosmic.portal for org.freedesktop.impl.portal.Screenshot (config)
xdg-desktop-portal-DEBUG: 22:36:19.585: providing portal org.freedesktop.portal.Screenshot
xdg-desktop-portal-DEBUG: 22:36:19.585: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.585: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.585: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.585: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.585: Using gtk.portal for org.freedesktop.impl.portal.Wallpaper (config)
xdg-desktop-portal-DEBUG: 22:36:19.585: providing portal org.freedesktop.portal.Wallpaper
xdg-desktop-portal-DEBUG: 22:36:19.585: Found ā€˜cosmic’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.585: Found ā€˜gtk’ in configuration for default
xdg-desktop-portal-DEBUG: 22:36:19.585: Using gtk.portal for org.freedesktop.impl.portal.Account (config)
xdg-desktop-portal-DEBUG: 22:36:19.586: using org.freedesktop.impl.portal.Account at org.freedesktop.impl.portal.desktop.gtk

xdg-desktop-portal-DEBUG: 22:36:19.586: providing portal org.freedesktop.portal.Accountxdg-desktop-portal-DEBUG: 22:36:19.586: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.586: Found ā€˜gtk’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.586: Using gtk.portal for org.freedesktop.impl.portal.Email (config)xdg-desktop-portal-DEBUG: 22:36:19.586: providing portal org.freedesktop.portal.Emailxdg-desktop-portal-DEBUG: 22:36:19.586: Found ā€˜gnome-keyring’ in configuration for org.freedesktop.impl.portal.Secretxdg-desktop-portal-DEBUG: 22:36:19.586: Using gnome-keyring.portal for org.freedesktop.impl.portal.Secret (config)xdg-desktop-portal-DEBUG: 22:36:19.587: providing portal org.freedesktop.portal.Secretxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜gtk’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜gtk’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Using gtk.portal for org.freedesktop.impl.portal.DynamicLauncher (config)xdg-desktop-portal-DEBUG: 22:36:19.587: providing portal org.freedesktop.portal.DynamicLauncherxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Using cosmic.portal for org.freedesktop.impl.portal.ScreenCast (config)xdg-desktop-portal-DEBUG: 22:36:19.587: providing portal org.freedesktop.portal.ScreenCastxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜gtk’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜gtk’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜gtk’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜cosmic’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.587: Found ā€˜gtk’ in configuration for defaultxdg-desktop-portal-DEBUG: 22:36:19.588: providing portal org.freedesktop.host.portal.Registryxdg-desktop-portal-DEBUG: 22:36:19.588: org.freedesktop.portal.Desktop acquiredxdg-desktop-portal-DEBUG: 22:36:19.592: Adding derived host app ā€˜ā€™

I made two PRs. One on nixpkgs and one on HM.

1 Like