Skip to content

Conversation

@Samueru-sama
Copy link
Member

@Samueru-sama Samueru-sama commented Nov 21, 2025

This is weird, the app does not contain the string /usr/share yet it is hardcoded to look into /usr/share/RMG

PATH_MAPPING_HARDCODED was already needed to fix the access to /usr/lib/RMG, all this does it patch away /usr/lib for /tmp/XXX where XXX is 3 random characters, then the AppRun makes a symlink there to the lib dir of the appimage and all good.

The app instead contains a /usr/libL with that weird L as the hardcoded string, so this can be patched without problem.

For /usr/share it instead has /usr/shaL dafuck. So this cannot be patched manually.

Thankfully we have another way of fixing the hardcoded path, that is using pathmap which is a library we preload instead of doing binary patching.

Funny enough it only works for /usr/share/RMG it does not work for /usr/lib/RMG so we need to use BOTH methods here 😹

Artifact for testing

@bmsuseluda
Copy link
Collaborator

It works 🎉

@bmsuseluda bmsuseluda merged commit 251a727 into main Nov 21, 2025
4 checks passed
@bmsuseluda bmsuseluda deleted the debug branch November 21, 2025 22:42
@VHSgunzo
Copy link

VHSgunzo commented Nov 24, 2025

@Samueru-sama

libstdc++ uses __openat_2 in std::filesystem::recursive_directory_iterator, added it to pathmap
Fix VHSgunzo/pathmap@f2926fb

image

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

Successfully merging this pull request may close these issues.

4 participants