this post was submitted on 19 Aug 2023
51 points (94.7% liked)
Linux Gaming
15512 readers
321 users here now
Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME
away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.
This page can be subscribed to via RSS.
Original /r/linux_gaming pengwing by uoou.
Resources
WWW:
Discord:
IRC:
Matrix:
Telegram:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I run Flatpaks for gaming mainly because I want cutting edge Mesa (which is inherently used while running games from Flatpaks). It's not necessary right now since Bookworm was just released and Mesa is not that old, but as a long-term plan I think this is more consistent. I don't think Steam will have a problem keeping up to date without Flatpak, but Lutris is probably best kept cutting-edge via external Deb repo or Flatpak. In general Flatpaks are pretty terrific and I recommend using them for a lot of things nowadays anyway (I even used a lot of them on Arch Linux). There's really no performance cost anymore, and most Flatpaks are configured seamlessly from the start so you don't need to worry much about access issues.
Flatpaks can generally access anything they want, but you might have to allow that access manually, depending on how the Flatpak is initially configured (Flatseal makes this super easy). Usually this just means you'll need to allow read-only or read/write access to specific directories where your personal files live. The biggest problem that Flatpaks have is that they absolutely can't access
/usr
(and/usr/bin
by extension), and this can make things like runningmangohud %command%
orstrangle 60 %command%
more or less impossible. You can actually still access stuff via/run/host/usr/bin
from inside a Flatpak if you give it host permissions but things run this way usually get very confused and don't work correctly. You can also try to use flatpak-spawn to do some interesting things from within the "sandbox", but its usecases are limited in my experience. Notably you can cut off internet access from a game that's being run, butflatpak-spawn
also currently has a bug/oversight which wipes out the environment variables for the spawned process, which usually causes some havoc.There are also "portals" that hook into Flatpak, which I don't know nearly enough about. If you use KDE for example, when you "open" a file using a Flatpak'd program, KDE will swap in a native file dialog and let you pick a file from anywhere even if the Flatpak doesn't have access, and then it grants a temporary one-time access to that file to the program. For example I disallow Discord from accessing practically everything, but I can still upload files from anywhere on my system to a Discord channel with the KDE file portal.
In terms of Proton versions and Wine versions etc, there's no issues here. I usually use ProtonUp-Qt to install different versions, and Steam/Lutris/Bottles will have no issues accessing these even if they're Flatpak'd.
Edit: Also, you can theme Flatpaks like this. You'll need your system themes to be installed to
~/.themes
and~/.icons
in order for Flatpak programs to access them, and then you can set default global overrides for the theming environment variables and access to~/.themes
etc. using Flatseal. This will allow all programs to use your themes without individual configuration.Okay, on this thread alone a lot of people are suggesting to go stable (including yourself) so now I’m thinking you guys must know something I don’t. Truthfully, I only really need a few things for the games that I run like a recent kernel (XanMod maybe?) Wine staging, steam, nvidia drivers, lutris, bottles and proton (through ProtonUp-Qt). As long as I can run those things on recent versions, I think going stable would be fine too.
The advent of Flatpaks have really made Debian Stable into a serious contender for desktop Linux, and Debian 12 is a remarkably good release even by Debian's standards. Bookworm has received a lot of praise since its release, and I think people (like myself) are starting to reconsider what a desktop Linux can look like.
It does take a little bit of extra setup to get more cutting-edge stuff for the applications you use most often, but after sourcing everything and stuffing all the individual updating mechanisms into an update script, you'll get the best of both worlds - stable base and rolling user applications. If nothing else you should try Stable first before resorting to Sid - you may be inheriting Sid's volatility without a proper usecase. If you don't run Debian Stable or Debian Sid/Arch Linux, you'll probably want to go somewhere in the middle like OpenSUSE Tumbleweed, which is cutting-edge with extensive testing baked-in.
I’m going to give stable a try and see how far I get with gaming and go from there. I’ve never run straight Debian as a desktop it’s always been on servers so my experience there is limited.
I’m curious as to the update script you are talking about. Care to point me to an example? Wouldn’t flatpak update do the trick for everything running in flatpaks? And apt update/upgrade for the rest?
Yeah exactly. An update script just runs all these updates in a single command
this is what mine looks like (apparently lemmy does not like &&'s so take care with the
&
bits):Ah okay fair enough! Thanks for sticking to the conversation. I will rebase everything to stable and goes that a try for awhile!