Welcome to Sway club! 😜 This sounds like you haven't installed an xdg desktop portal (https://wiki.archlinux.org/title/XDG_Desktop_Portal) I personally installed the gnome ones. However you can pick any of these. They provide stuff like file pickers, etc. Regarding the links there was a command to set the default app for different mime types using xdg-open. Unfortunately I wasn't able to find it.
post
The commenter talking about xdg desktop portal is correct for the file picker; you need to install a portal for that.
I can’t get links to open from discord
Are you using dbus? Display managers normally will launch graphical sessions with dbus for you, but if you're manually launching from the tty, use dbus-run-session sway (or the name of the executable you want to run). dbus is used for applications to communicate with each other, e.g. Discord to communicate with your browser. And you need dbus installed and the daemon running, of course.
I don't know what dbus is but I am launching sway through ly so... maybe? I'll check.
Edit: a very brief google search with ly and dbus says no, it does not launch dbus correctly. So Ill go ahead and look into that
Not sure what ly is but basically I'm saying you should be using the dbus-run-session sway command to run sway instead of just sway. If dbus is installed and the daemon is running then this will allow you to e.g. open links in Discord.
In case you don't know, Sway is not a full desktop environment like KDE or Gnome, it's kind of a DIY thing. Sway is just a Window Manager, then you need to set environmental variables, the XDG portal that someone already posted, file manager and probably a way to manage themes.
You may look into this https://github.com/madic-creates/Sway-DE
And also some documentation on DEs: https://wiki.archlinux.org/title/Desktop_environment
all 11 comments