Links in apps wont open

When i clink link in apps like freetube and spotify. they wont open dispite firefox being open.

Is xdg-open working?

What happens if you type this in terminal?

xdg-open https://forum.endeavouros.com

https://forum.endeavouros.com/ opens in firefox

How did you install freetube and spotify?

flatpak --user install freetube
flatpak --user install spotify

Ah, so links won’t open from flatpaks.

What does pacman -Q | grep xdg-desktop return and which DE are you using?

pacman -Q | grep xdg-desktop returns
xdg-desktop-portal 1.18.0-2

and i am running hyprland

You should install xdg-desktop-portal-hyprland

sudo pacman -S xdg-desktop-portal-hyprland
returns
xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst failed to download
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.osbeck.com : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from ftp.acc.umu.se : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.ubrco.de : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.moson.org : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.sunred.org : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirrors.niyawe.de : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.kumi.systems : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from arch.jensgutermuth.de : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from arch.phinau.de : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from packages.oth-regensburg.de : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from pkg.fef.moe : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from ftp.myrveln.se : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirrors.janbruckner.de : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from ftp.fau.de : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.metalgamer.eu : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.23m.com : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from arch.unixpeople.org : The requested URL returned error: 404
error: failed retrieving file ‘xdg-desktop-portal-hyprland-1.2.2-1-x86_64.pkg.tar.zst’ from mirror.cmt.de : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

Your system needs to be updated.

sudo pacman -Syu xdg-desktop-portal-hyprland

ive updated and installed xdg-desktop-portal-hyprland and rebooted. but links still wont open

What is the output of xdg-settings set default-web-browser? In my case it’s set to firefox.desktop and links usually open fine.
You can set default browser using xdg-mime:

xdg-mime default firefox.desktop x-scheme-handler/https x-scheme-handler/http

More info on setting default browser: https://unix.stackexchange.com/questions/307641/cant-change-the-xdg-open-url-handler-to-firefox

i too am having the same issue
spotify wants to open browser for login but cant open it

Had the same issue a few days ago. After installing this:

pacman -S xdg-desktop-portal xdg-desktop-portal-kde xdg-desktop-portal-gtk 

and afterwards doing a reboot it worked fine again.

perhaps you also need:

sudo pacman -S flatpak-xdg-utils