dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

Xdg-open not work

Open xaolanx opened this issue 10 months ago • 9 comments

Running xdp-open https://nixos.org/ show error Error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.OpenURI” on object at path /org/freedesktop/portal/desktop

xaolanx avatar Feb 17 '25 06:02 xaolanx

trial set xdg.portal.xdgOpenUsePortal = false; in https://github.com/fufexan/dotfiles/blob/main/system/programs/xdg.nix#L4 and if u want screen sharing, exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP in hyprland settings

hmanhng avatar Feb 17 '25 10:02 hmanhng

and if u want screen sharing, exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP in hyprland settings

Not needed if you use UWSM.

Running xdp-open https://nixos.org/ show error Error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.OpenURI” on object at path /org/freedesktop/portal/desktop

Is the xdg-desktop-portal user service running?

fufexan avatar Feb 17 '25 17:02 fufexan

and if u want screen sharing, exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP in hyprland settings

Not needed if you use UWSM.

it not work for me when not have dbus-update services xdg-desktop-portal-hyprland not run

➜ systemctl --user status xdg-desktop-portal-hyprland
○ xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/etc/systemd/user/xdg-desktop-portal-hyprland.service; linked-runtime; preset: ignored)
     Active: inactive (dead)

hmanhng avatar Feb 18 '25 14:02 hmanhng

I know this is a very late reply, but I don't do anything suddenly now works normally

xaolanx avatar Feb 28 '25 00:02 xaolanx

and if u want screen sharing, exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP in hyprland settings

Not needed if you use UWSM.

it not work for me when not have dbus-update services xdg-desktop-portal-hyprland not run

➜ systemctl --user status xdg-desktop-portal-hyprland
○ xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/etc/systemd/user/xdg-desktop-portal-hyprland.service; linked-runtime; preset: ignored)
     Active: inactive (dead)

@fufexan can u check your services xdg-desktop-portal-hyprland running without dbus-update ?

hmanhng avatar Feb 28 '25 01:02 hmanhng

It does work, that's why I suggested using UWSM, since it does away with the requirement for dbus-update-....

fufexan avatar Feb 28 '25 09:02 fufexan

It does work, that's why I suggested using UWSM, since it does away with the requirement for dbus-update-....

yes im using it but still not work, can u check my config ? https://github.com/hmanhng/.flakes

hmanhng avatar Mar 01 '25 09:03 hmanhng

You still have dbus-update-... in your config https://github.com/hmanhng/.flakes/blob/master/system/programs/hyprland/settings.nix#L24. What happens if you remove it?

fufexan avatar Mar 02 '25 13:03 fufexan

You still have dbus-update-... in your config https://github.com/hmanhng/.flakes/blob/master/system/programs/hyprland/settings.nix#L24. What happens if you remove it?

xdg-desktop-portal-hyprland service not inactive without dbus-update

➜ systemctl --user status xdg-desktop-portal-hyprland
○ xdg-desktop-portal-hyprland.service - Portal service (Hyprland implementation)
     Loaded: loaded (/etc/systemd/user/xdg-desktop-portal-hyprland.service; linked-runtime; preset: ignored)
     Active: inactive (dead)

hmanhng avatar Mar 03 '25 04:03 hmanhng