Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911936 - [guru] games-util/xivlauncher-1.0.4-r2 does not detect gamemode
Summary: [guru] games-util/xivlauncher-1.0.4-r2 does not detect gamemode
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal minor
Assignee: Anna
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-08 21:58 UTC by Lucas Barbieri
Modified: 2023-08-13 23:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to enable the toggling of gamemode in settings (gamemode-fix.patch,914 bytes, patch)
2023-08-08 21:58 UTC, Lucas Barbieri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Barbieri 2023-08-08 21:58:13 UTC
Created attachment 867444 [details, diff]
patch to enable the toggling of gamemode in settings

gamemode when compiled only for 64bit installs its libraries to /usr/lib64.
XIVLauncher.Core on the other hand looks for gamemode on /usr/lib, and that would require gamemode 32bit. Now, I haven't looked into the source code all that much but I don't think it requires gamemode 32bit, so it's just looking at the wrong place.

I have opened an issue on github talking about it, with a link to where in the code it detects gamemode's location. https://github.com/goatcorp/XIVLauncher.Core/issues/67

I have also patched it so it looks at the right place, and it seems to be working. `gamemoded -s` and mangohud tell me that it is running. I'll link it in case it's needed.
Comment 1 Anna 2023-08-12 20:11:50 UTC
(sorry for taking a while)

thanks for letting me know!

altho, ideally we don't change the path to /lib64, and instead, try to load the lib, if it succeeds, we know the lib is on the system, if not, well it's not

i'll make a patch for this and try to submit upstream!
Comment 2 Anna 2023-08-12 21:04:07 UTC
sent a patch for this issue in this pr https://github.com/goatcorp/XIVLauncher.Core/pull/68