Open TheLich132 opened 2 years ago
if you installed the program with the --user flag then you can copy the library to $HOME/.local/share/flatpak/app/
#!/bin/sh
LD_PRELOAD=/app/lib/libgtk-3.so.0.2404.30 <executable name>
Doesn't seems to be working...
Tried doing LD_PRELOAD with wrong path and it gave few errors:
ERROR: ld.so: object '/app/lib/libgtk-3' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
and with correct path to the file, program started without errors but with default gtk filepicker, so I think it loads the library, but doesn't do anything with it
what program did you try?
Discord and MS Teams. On both I had same results.
so. you don't need to use LD_PRELOAD and rename. just copy the library into the libs folder then create two symlinks to it:
ln -s libgtk-3.so.0.2404.30 libgtk-3.so.0
ln -s libgtk-3.so.0.2404.30 libgtk-3.so
I checked with Discord. since MS Teams is also made on electron should also work.
So I should have something like this and that's it? Doesn't have to change anything more? If yes, then I'm surly doing something wrong, because it's still isn't working. Also my pachted files worked correctly when I tested them with Discord installed from distro repo, so I can use this version if nothing will work.
I have also found a bug. User can't select multiple items in patched filechooser
reinstall discord and try on a freshly installed one.
Is it possible to make this patch work with flatpak applications?