Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is copying the libraries to /tmp really necessary? #40

Open
hideki2k02 opened this issue Aug 5, 2024 · 1 comment
Open

Is copying the libraries to /tmp really necessary? #40

hideki2k02 opened this issue Aug 5, 2024 · 1 comment

Comments

@hideki2k02
Copy link

Hello there,

Recently I was running some tests to get CreamLinux working with the Irony Launcher (HOI4) and I had to make some tweaks to the "run_hoi4" script that the game uses on Linux.

I noticed that by simply adding these two lines to the script it will work just as fine, so why did you opt to copying the files?

export LD_LIBRARY_PATH="$GAME_DIR":"$LD_LIBRARY_PATH"
export LD_PRELOAD="$LD_PRELOAD lib64Creamlinux.so lib32Creamlinux.so libsteam_api.so"

"$GAME_DIR/hoi4" "$@"

Another thing that might be worth noting: You can add this to the launch parameters and it will also work just fine (Just double check if the game is 32 or 64 bits)

LD_PRELOAD="lib64Creamlinux.so $LD_PRELOAD" gamemoderun %command%
@T00fy
Copy link

T00fy commented Sep 20, 2024

Because some games put those files in different directories. It's easier to debug by just doing an ls on /tmp. Technically you don't need to put it in /tmp, but what difference does it even make? Is /tmp not accessible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants