xdgOpenUsePortal: No entry for <mime-type>

I set xdg.portal.xdgOpenUsePortal to true recently to make my browser open Downloads properly when I click on them.

However, I noticed that the files are not opened at all. I am using xdg-desktop-portal-hyprland and xdg-desktop-portal-gtk, I noticed that the user dbus mentions the following error:

‣ Type=error  Endian=l  Flags=1  Version=1 Cookie=17  ReplyCookie=343  Timestamp="Mon 2025-10-20 23:01:18.701481 UTC"
  Sender=:1.301  Destination=:1.248
  ErrorName=org.freedesktop.portal.Error.NotFound  ErrorMessage="No entry for text/csv"
  UniqueName=:1.301
  MESSAGE "s" {
          STRING "No entry for text/csv";
  };

Does anyone have a clue why is that?
I set the default mime type via xdg.mime.defaultApplications and can confirm that it is present in /etc/xdg/mimeapps.list. Why is xdg-permission-store.service not taking into account that mapping?

This often happens if the portal got launched before environment variables were imported into the systemd user session, leaving the portal without your user’s software on PATH.

1 Like