28
Help with wayland/sway (sh.itjust.works)
submitted 5 days ago* (last edited 4 days ago) by Vendetta9076@sh.itjust.works to c/linux@lemmy.ml

So I finally switched my desktop from windows to EOS after years of running headless linux servers.

I'm having a good time of it but I want to be one of the cool kids and use a tiling windows manager. And ive been loving that too. Except I can't get links to open from discord and steam can't open the file browser. I could just boot into KDE or GNOME to add non-steam games to my library but I don't want to goddamnit. What can I do to start fixing this issue? Haven't found any solutions online.

Edit: looks like I found the solution, portal was installed but never ran at startup. A quick exec inside the sway config has solved my issues. Thank you everybody!

top 11 comments
sorted by: hot top controversial new old
[-] Chaser@lemmy.zip 16 points 5 days ago

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.

[-] Vendetta9076@sh.itjust.works 5 points 5 days ago

Thanks! This fixed part of my problem lol. The "browse local files" button works but if I want to add a non steam game or customize said non steam game with images, that still doesnt work. Which is... Odd.

[-] Chaser@lemmy.zip 2 points 5 days ago

That's odd 🤔

Just for the protocol: besides installing it you also launched xdg-desktop-portal, right?

/usr/lib/xdg-desktop-portal -r & /usr/lib/xdg-desktop-portal-gtk

Also you need both, xdg-desktop-portal and xdg-desktop-portal-[your choice].

[-] Vendetta9076@sh.itjust.works 3 points 5 days ago

alright looks like its not running those at startup. Thank you kindly!

[-] communism@lemmy.ml 5 points 5 days ago

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.

[-] Vendetta9076@sh.itjust.works 2 points 5 days ago* (last edited 5 days ago)

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

[-] communism@lemmy.ml 1 points 5 days ago

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.

[-] Vendetta9076@sh.itjust.works 2 points 4 days ago

Turns out the portal was installed but never ran at startup. Ive put an exec command in my sway config and now everything works. Appreciate both of you :)

[-] TruePe4rl@lemmy.ml 1 points 4 days ago

ly is a TUI greeter

[-] ogeist@lemmy.world 4 points 5 days ago

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.

this post was submitted on 20 Nov 2025
28 points (100.0% liked)

Linux

59761 readers
536 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS