Score:1

How to force a application to use the right GTK version save dialog box

cn flag

I am running Ubuntu 22.04.2, the long term support version, with unity/lightdm, and Chromium browser from the debian archives. Everything works great except for a couple of native integrations, for example the file chooser in the application seems corrupted, like it is using a gtk3 calling convention but the code that is executing is gtk4. It is like this other question except that I am not running that desktop environment, so i am looking for a general answer.

here is what my screen looks like normally:

desktop environment - chromium window and sidebar

and here is what my save dialog box looks like:

enter image description here

The problem manifests a lot like the other question linked above: when i type a filename, it searches instead.

Does this require Chromium to be compiled against a different GTK version? Is there such a distribution out there?

Dave Ankin avatar
cn flag
looks like it at least handles typing correctly on ubuntu 22.10 - got that from here - https://old.reddit.com/r/Ubuntu/comments/y98iup/ubuntu_unity_2210_well_done_rudra/
David avatar
cn flag
Additional info for the question needs to be added with edit not as a comment. All info for the question in one place.
user535733 avatar
cn flag
If GTKv3 vs. v4 were really the issue, then you would fix the source code and recompile. While there are runtime ways to accomplish what you suggest (like an AppArmor rule), those seem inappropriate: Bugs should be fixed instead of intrusively worked around.
Dave Ankin avatar
cn flag
but then how does the snap version seen to work fine? it seems to me that they somehow isolate what ldd sees for an application and then it picks the right one. maybe they also change the source code in order to lock people into using their uniquely gtk3 compatible build...
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.