How to run GTA 5 of Epic Games on Void Linux
Legendary Launcher#
Legendary launcher is a terminal based epic games launcher. And yes, it lives up to the name, it's my favorite FOSS. Very minimal and way better than the og epic launcher!
I found it from here and installed the void linux package.
https://github.com/derrod/legendary
To log in
To see your games
This is what it shows me

And installing is like
Steps#
Installing GTAV was like this
And to launch I would just
EDIT- On a new system it worked out of the box. I believe it's because Wine had updated to 6.12. Well if it doesn't launch OOTB you could try the steps below.
But it didn't work out of the box. I first got some error where it would fail to verify my data. After a little bit of googling I found out that I could run it through proton as well.
This commment mentioned that you need to add PlayGTAV.exe in steam. I then looked up how to add it to steam. Turns out its pretty simple
Then I found this thread, these are the steps
Go to add a game and add the game executable from the folder it is contained.
Go to the games properties on Steam and force Proton use.
Go to Launch options and Add --wine or --proton to the box. ( I added --proton)
I then tried the suggestions of this thread.
I created a directory ~/.proton
Then added the following to ~/.config/legendary/config.ini
(First line was already there, and I had to add the last environment variable as well cuz I'd get some error without it)
I thought I was all done, no. When i tried launching I got this error
I found out that all I had to do was increase my ulimit by making my system ready for Esync.
https://github.com/lutris/docs/blob/master/HowToEsync.md
my current ulimit was 4096, I had to increase it to 500000+
I followed the second method
And after this I had to add the line
to /etc/pam.d/login and /etc/pam.d/lxdm (my display manager) at the bottom.
After saving and rebooting ulimit -Hn showed the value I put!
And this time GTA 5 finally worked!!!
Optional#
I installed MangoHud package to monitor my FPS, I just had to add it like this while launching my game

I also set my CPU scaling governor to performance, my default was powersave
I installed cpupower package for it. And then I did this
This sets all the cores to performance mode(requires sudo previleges).
This really improved my fps, and I turned it off back to powersave after closing the game.
This is how you check the CPU scaling governor