Sandboxing Lutris

Hello,

I am probably not the first to come up with this, but I see no recent topics, so - could anyone give an up-to-date idea on Lutris sandboxing - is it possible to do, are there any Firejail profiles, or any other approaches - anything that would be relevant at the moment.

Also, I am curious if it is possible to sandbox separate prefixes in different ways - e. g., allow internet access for online games, and none for local ones, etc.

Thanks.

Yes, it is possible to do and firejail comes with a dedicated profile for Lutris. However, the Lutris profile is quite restrictive and I have not managed to get it working on Kubuntu 26.04, Lutris refuses to launch.

You could use the command prefix for each game to have that game launch with a different profile, or just apply the ā€œā€“net=noneā€ command line argument to firejail for games who are not allowed internet access.

On my system, Lutris is firejailed with a simple profile which only restricts file system access so Lutris is unable to access anything other than what is required and all games will be running in the same sandbox.

1 Like

Thanks for pointing me to this, and for the suggestions. Let’s see what I can make of it, then. :wink:

any succes? I’m currently dealing with the same issue for D2R, I’m very new to lutris and linux in general so I have no idea what I’m doing:')

Haven’t fiddled with it very much yet, if you use Firejail as suggested above, maybe it would work?

I’ll look into it, very new to all of this so might be slow, but will keep you updated if it works

I think I broke my system

The important question that has to be answered before sandboxing Lutris is: What do you want to achieve by doing so?

@KlotePino How did you break your system? Did you make the mistake of running the command sudo firecfg? If so, this is usually undone with sudo firecfg --clean.

I was being a bit dramatic, everything is fine:p

What I’m trying to do is to play my 3 copies of diablo2Resurrected like I used to do on windows

I do not get the connection between sandboxing Lutris and playing specific games?

maybe I should have said sandboxing IN lutris, and not lutris itself, my bad now that I read it it seems like a very dumb mistake

Basically what I’m looking for is to run D2R 3 times, and what my actual question is but better formulated ā€˜ā€˜can I even do this in/with lutris’’

I’ll work on being much more specific and have it better thought out/written down before I hit enter next time, sorry

Weird idea to run the same game multiple times… I do not think this is possible with Lutris, maybe three VM’s running simultaneously may be able to do the job but that would cause really poor performance.

1 Like

I’m slowly starting to consider a VM with heavily debloated windows and just using the method I used to, but it would be so nice if I could just do it all in linux.

(Running multiple instances of D2R is extremely common in the community, almost everyone does it, it allows you to fill your own games and control everything that happens in it:p)

@KlotePino Since Wine does no longer support windowed mode, I cannot see how you would be able to run multiple instances of D2R on the host without some sort of trickery I’m not familiar with.

But with Linux as host, you can use Virtual Machine Manager (package virt-manager) to spin up the Linux-flavour which is most suited to run D2R, install what is required and make sure the game runs as it should. Hereafter you can clone that VM into multiple instances and run each of them in their own window and thus have multiple instances of D2R running side-by-side. I’m not sure about performance, though, and mouse lagging could become a problem…

1 Like

Thank you so much!
I will give this a go, I have a decently beefy system, and D2R has an ā€˜old graphics mode’ that greatly reduces resources used, between that, I think it should be possible.
WIll update when it works:)