desktop icon indicating copy to clipboard operation
desktop copied to clipboard

File Handler Dialog not opening in Archlinux (Hyprland)

Open HauntedKnives opened this issue 8 months ago • 4 comments

Captchas

  • [x] I have read the instructions.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.
  • [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

The file handler dialog doesn't open at all when trying to download, save page, upload, etc. It is not an issue in Firefox and only happens with Zen. I am using Archlinux with Hyprland.

I think this issue is also linked with Issue 502 but it is closed. Please fix this.

Version

1.11.1b

What platform are you seeing the problem on?

Linux (Flatpak)

What component is this issue related to?

Other

Relevant log output if applicable


HauntedKnives avatar Apr 07 '25 09:04 HauntedKnives

I don't know what is happening, but I found a way (or ways — I'm really not sure) that solved it for me. I'm saying this because I tried a lot of things that didn't solve anything at first, but after a reboot, one of those things fixed the issue.

I have the same environment as you: Arch + Hyprland

  1. Installed xdg-desktop-portal-hyprland (pacman -S xdg-desktop-portal-hyprland).
  2. Changed the default MIME type handler for inode/directory. My default was kitty-open. I changed it to org.kde.dolphin.desktop. I did this by adding the following entry to [Default Applications] in ~/.config/mimeapps.list:
    inode/directory=org.kde.dolphin.desktop
    (This is weird because I changed it, but the file picker that opens isn't Dolphin hahaha, so this probably doesn't do anything here.)
  3. Removed the inode/directory text insidse kitty-open.desktop file (at /usr/share/applications).
  4. Set widget.use-xdg-desktop-portal.mime-handler to 1 (in zen about:config). (I don't really think this did anything, but I did it anyway, so I'm mentioning it just in case.)

As I said, I don't know which of these things actually fixed the problem, but that's what I did. Try each one separately, and reboot your computer after each change to figure out what actually works.

I found out the issue was related to XDG/MIME types because when I changed widget.use-xdg-desktop-portal.file-picker to 0, then closed and reopened Zen, the file picker that showed up was the Gnome File Picker (which was problematic, so just it doesn't solved my problem).

GiovanePS avatar Apr 22 '25 05:04 GiovanePS

Hi, @HauntedKnives. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported an issue with the Zen browser on Archlinux with Hyprland where the file handler dialog fails to open.
  • GiovanePS, with a similar setup, suggested potential solutions like installing xdg-desktop-portal-hyprland, modifying MIME type handlers, and adjusting Zen browser settings.
  • GiovanePS recommended trying each solution separately and rebooting to identify the effective fix.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the desktop repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar May 23 '25 16:05 dosubot[bot]

No, I already tried it. It doesn't work.

However, there is no problem with the tarball version.

HauntedKnives avatar May 24 '25 13:05 HauntedKnives

I was having a similar problem when I wanted to save a PDF, for example, it wouldn't open the file dialog to save.

The following commands solve this issue:

sudo pacman -S xdg-desktop-portal-gtk systemctl --user restart xdg-desktop-portal

msdevpt avatar May 24 '25 17:05 msdevpt

I was having a similar problem when I wanted to save a PDF, for example, it wouldn't open the file dialog to save.

The following commands solve this issue:

sudo pacman -S xdg-desktop-portal-gtk systemctl --user restart xdg-desktop-portal

thanks a lot bro, you solved my problem

eliabexp avatar Jun 05 '25 13:06 eliabexp

I was having a similar problem when I wanted to save a PDF, for example, it wouldn't open the file dialog to save.

The following commands solve this issue:

sudo pacman -S xdg-desktop-portal-gtk systemctl --user restart xdg-desktop-portal

Thanks! It also works for me.

HyperSoWeak avatar Jun 20 '25 09:06 HyperSoWeak

Hi, @HauntedKnives. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported a problem with the Zen browser on Archlinux with Hyprland where the file handler dialog fails to open.
  • GiovanePS suggested solutions like installing xdg-desktop-portal-hyprland and modifying MIME type handlers, which did not resolve the issue.
  • Other users, including msdevpt, resolved similar issues by installing xdg-desktop-portal-gtk and restarting the portal service.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the desktop repository by commenting here.
  • If no updates are provided, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Jul 21 '25 16:07 dosubot[bot]

I have the same issue, but on Flatpak / Gentoo / Niri. Manually restarting xdg-desktop-portal doesn't help. This is a new regression, I didn't have this issue from the beginning.

freijon avatar Jul 22 '25 19:07 freijon

After a downgrade from xdg-desktop-portal-gnome from 47.3 to 46.2, the file picker works again for me.

freijon avatar Jul 22 '25 19:07 freijon

Hi, @HauntedKnives. I'm Dosu, and I'm helping the desktop team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that the file handler dialog fails to open in Zen Browser on Archlinux with Hyprland when using the Flatpak version.
  • Suggested fixes included installing xdg-desktop-portal-hyprland and adjusting MIME handlers, which you found ineffective.
  • Other users resolved the issue by installing xdg-desktop-portal-gtk and restarting the portal service.
  • A regression in xdg-desktop-portal-gnome version 47.3 was identified and fixed by downgrading to 46.2.
  • I have asked for confirmation if the issue still persists with the latest version.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of Zen Browser.
  • If I don’t hear back within 10 days, I will automatically close this issue.

Thanks for your understanding and contribution!

dosubot[bot] avatar Oct 21 '25 16:10 dosubot[bot]