Skip to content

SHENZHEN I/O on Steam #21109

Closed
Closed

Description

@puffnfresh

The SHENZHEN I/O game on Steam launches after overriding LD_LIBRARY_PATH. Sadly this means it can't then load libGL on NixOS. I had to modify the launcher script under ~/.steam/steam/steamapps/common/SHENZHEN IO/Shenzhen so that it would prepend, instead of override:

export LD_LIBRARY_PATH=$STEAM_LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH

I emailed this to the creator of the game but they indicated that NixOS is not supported and so may not be able to do any work for it.

Do we have any mechanism for patching a Steam game ourselves?

Activity

  1. abbradar commented on Dec 13, 2016

    @abbradar
    Member

    I recently thought about using ld.so.cache instead of LD_LIBRARY_PATH. It solves those problems and also speeds things up, but there is one thing which breaks the idea: we can't do nested ld.so.cache. That is, Steam FHS would have its own ld.so.cache, and host NixOS would have its own (with /run/opengl-driver/lib), and we can't simply combine them somehow -- the only way from what I see is to run ldconfig at every start of FHS env (which seems hacky and slow to me).

    Also I've thought of adding support for NIX_LD_LIBRARY_PATH to Glibc. Unfortunately, the code is... not so easy I hoped it to be. I took a look long ago so the details are hazy but we can't just add add_library_path("NIX_LD_LIBRARY_PATH") somewhere and be done.

  2. abbradar commented on Dec 13, 2016

    @abbradar
    Member

    And to answer your question -- no, we don't have any automated way to patch games ATM, and it would be difficult to do (we need to somehow track your game installations and run hooks for new ones). Also, Steam will replace this patch on the game update, and some games might check their files too, so some other solution must be found.

  3. added
    6.topic: nixos
    on Dec 13, 2016
  4. added
    6.topic: steam
    on Dec 24, 2017
  5. tomberek commented on Oct 10, 2018

    @tomberek
    Contributor

    close as resolved or old?

  6. puffnfresh commented on Oct 10, 2018

    @puffnfresh
    MemberAuthor

    Yeah just old

  7. nyanloutre commented on Jul 1, 2019

    @nyanloutre
    Member

    Still happening, the export in the launch script did the trick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: nixos6.topic: steam

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions