You are not logged in.

#1 2016-04-23 00:37:56

Amanda S
Member
Registered: 2013-09-21
Posts: 276
Website

[SOLVED] Steam, Firejail, and LD_PRELOAD

I'm trying to run Steam with a custom command and with Firejail, but I'm unable to do so.
Because Steam can't properly detect/load the Radeon libraries, you either need to delete a few libraries from Steam's runtime, or start it with the following command:

LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libasound.so.2 '${LD_PRELOAD} steam

However, I can't do that with Firejail.
I tried editing Steam's profile:

noblacklist /usr/$LIB/libstdc++.so.6
noblacklist /usr/$LIB/libgcc_s.so.1
noblacklist /usr/$LIB/libxcb.so.1
noblacklist /usr/$LIB/libasound.so.2

Also, I tried:

[amarildo@amarildo ~]$ LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libasound.so.2 '${LD_PRELOAD} firejail steam

With no luck:

  [amarildo@amarildo ~]$ LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libasound.so.2 '${LD_PRELOAD} firejail steam
Reading profile /etc/firejail/steam.profile
Reading profile /etc/firejail/disable-mgmt.inc
Reading profile /etc/firejail/disable-secret.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Warning: user namespaces not available in the current kernel.
Parent pid 4609, child pid 4610
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
  Child process initialized
/home/amarildo/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
/home/amarildo/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on arch 64-bit
/home/amarildo/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

Does anyone have any idea how to do this?

Last edited by Amanda S (2016-04-24 16:56:48)


If it ain't broke, you haven't tweaked it enough...

Offline

#2 2016-04-24 16:56:38

Amanda S
Member
Registered: 2013-09-21
Posts: 276
Website

Re: [SOLVED] Steam, Firejail, and LD_PRELOAD


If it ain't broke, you haven't tweaked it enough...

Offline

Board footer

Powered by FluxBB