has worked, also for synaptic, but usually I start thunar and synaptic with pkexec, and for pkexec I found no solution yet.
Edit: Now I found a solution and noticed that I made a mistake. I hadn't found /etc/environment because I always looked at the folders which have such a name.
Because I found no such folder, I had created a new file and put it into /etc/environment.d.
Now I realized that it isn't a folder but a file, and the files are displayed at the end of all folders, so I had to scroll down to see the environment file! There it is!
By adding
GTK_OVERLAY_SCROLLING=0
to the file
/etc/environment
everything works now as expected, also in programs opened as root.
I am late to the party. But yes, I include the instructions for disabling overlay scrolling in my themes - I do not set it to script it through as that is user choice.
The home .profile folder can act as the system environment file, the first being Per User and the second being System Wide.
I notice that in Linux Mint XFCE 21 the window tiling with SUPER+arrow keys also doesn't work - and it can't be repaired by adjusting the window tiling shortcuts (they are set to numblock arrows by default). Always whisker-menu opens when you try to move a window by shortcut. The shortcut for the whisker-menu is set to SUPER L by default, and there seems to be no xcape program or modulator key as in Zorin Lite. You can only use the tiling shortcuts when you set another key or a key combination, e.g. SUPER+space for opening whisker-menu.
Sometimes the entire desktop in LM XFCE resets itself, including the background image, the selected themes, and the taskbar settings — which detracts from my enjoyment of this mint version. When I recently installed the same version on my other laptop, the same thing happened. In Zorin I know that this can happen when you change the layout in Zorin Appearance, but in LM XFCE no such function exists, and I didn't removed window buttons from the taskbar or added other critical objects which may explain the behavior. All themes and the background were preinstalled.
That reminds me: I clicked on "Reset to default applications" in the shortcut settings. Maybe that resets the entire .config folder???
I had to make all settings again: appearance, energy, taskbar apps and appearance, touchpad and mouse,...all have been reset, even the updater tool settings...That's really annoying, and I wonder which folders/files I should back up just in case that happens again.
I saved ~/.config now, but are the updater tool settings included there?