Closed hollowshiroyuki closed 1 year ago
for that you should install xdg-desktop-portal-gtk which provides a file chooser, but does not conflict with xdph
Even though I have both installed XDPH and XDPG, I still get the same no such interface error. Further, I also get Failed to request session: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.ScreenCast”
when trying to share my screen.
I am using NixOS and also tried changing ~/.config/xdg-desktop-portal/hyprland-portals.conf
...
@arminveres please provide more details about your system, or a config repo.
@fufexan sure, I have it all in my gh repo, more specifically in the home/default.nix and home/modules/hyprland.nix.
@arminveres https://github.com/arminveres/nix-conf/blob/b7f5d9faa64be9867842b3621bbd833e01aa27f0/home/default.nix#L46 should be inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
. It's not exactly a good idea to mix up flake and Nixpkgs packages.
Edit: I should integrate the HM portal config in the Hyprland module.
@fufexan sorry, I already tried that as well, didn't push it yet though. Still no change...
@arminveres can you check whether the interface appears in d-spy
? Should look like this.
@fufexan it is there
EDIT: I don't know if it is related, but GTK themes also are not always getting applied, e.g, in D-spy, should be dark, and other gnome based apps.
I doubt it's related, might be that your theme only applies to GTK 3 and not GTK 4 programs. Try to run dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
.
If the interface appears then it should work. Does it only fail with ImHex, or other programs as well?
It actually fails with WebCord and Vesktop (both Discord clients) for me. When running xwaylandbridge
, it also crashes with some missing org.freedesktop...impl. interface.
What about trying to open/save a file in firefox?
Firefox or Signal-Desktop for the matter both work for File picking. Screensharing however does not work inside Firefox.
Can you enable the Hyprland NixOS module along with xdg.portal.enable = true;
and see whether that works?
I have it already enabled, otherwise GDM does not find Hyprland as a session. But I tried disabling the home managed version to no effect. When xdg.portal.enable
is set to true, it requires extra packages to be set, otherwise the build fails.
EDIT: Honestly, it is driving me nuts for no good reason. I remember it worked back on Fedora 40 and all the systemd
services are running too.
For anyone interested, I was able to solve this by moving the xdg.portal
configuration from home-manager to nixos modules... it was probably invisible to some system services.
Hi, I'm having the same issue, although I'm on Arch.
I have both XDPH and XDPG installed and running, but in programs that uses xdg file opener I get the No such interface "org.freedesktop.portal.FileChooser"
error.
I'm using the ashpd library to request the file chooser, but I get the same thing if I open firefox with GTK_USE_PORTAL=1 firefox
and force firefox to use the xdg implementation of the file chooser
I don't know if it's related, but I'm having a brunch of "file-opening" problems recently. Ultimaker Cura segfaults when trying to open a pop-up, zed straight up doesn't do anything when trying to open a folder, and Chromium spits out "No such interface "org.freedesktop.portal.FileChooser" in the logs when opening, but the file picker still works somehow. Again, I'm not as tech-literate as many of you so I'm not sure these all are related, but I just wanted to point that out. I'm gonna try with KDE to see if all there are wlroots/hyprland related or nah
UPDATE: Yeah these all are happening on kde (wayland) too, so I guess they aren't wlroots/hyprland related. Oops.
Hi !
I'm trying to use the ImHex editor https://github.com/WerWolv/ImHex in hyprland. As I need the screen sharing feature in discord, I also installed XDPH and it works really nicely, thanks !
But now I'm having a problem when trying to open a file in ImHex, I get this message :
I understand that this project is primarily aimed to implement advanced screen sharing on hyperland so the file picker might be out of it's scope, is there a way to configure an external file picker like Nautilus ?
Idrk if this is the right place to ask or if I should go ask an alternative on the ImHex repository ?