I’ve found an obscure situation where something works correctly in GTK3 but fails silently in GTK4. I’d like to try a git bisect, but it’s likely to break my desktop unless I can set up some sort of sandbox. I also need to be able to run gjs against the test version of GTK.
Can it be done as simply as installing in a non-standard location and using LD_LIBRARY_PATH, GI_TYPELIB_PATH etc to run the test? If not, what’s the next best way? I think I’ve read that GTK has good support for building in a Flatpak environment, so maybe that? I’ve never used it before, though. If it’s complicated, maybe I should just resort to overwriting the system GTK and running the test in KDE Plasma.