by JonathanBeuys · 5y ago · 0 comments
My problem is that Firefox has a "snapping" scroll behavior that I find very annoying. When I move my fingers on the touchpad of my laptop, that does not immediately move the page. Instead, it waits until I moved a certain distance and then moves in one big swoosh.
Starting Firefox from the command line like this solves it:
MOZ_USE_XINPUT2=1 firefox
Is there a way to make this permanent or accomplish the same via a setting in about:config?
Although the scroll is more fine grained now, it looks kinda wobbly. Almost as if there is a raster interrupt at play, lol. As if the screen gets repainted mid scroll and then needs another round until the whole screen is updated.
export MOZ_USE_XINPUT2=1
into your ~/.bash_profile or ~/.bashrc (edit: or just ~/.profile under ubuntu).You'll have to logout/login to "apply" that.
Alternatively you can edit the .desktop file of Firefox, but that might not catch all the ways in which firefox may be launched.
So I guess it would also not work in .bashrc. But not sure.
Your .bash_profile allows you to set up the environment for your entire session.
I'm afraid each desktop environment probably has its specific way of adding environment variables.
Wiki for the curious: https://wiki.archlinux.org/title/environment_variables#Per_u...
Usually, PAM will load environment variables during session initialization; I'm pretty sure that's the thing that reads /etc/environment. See man pam_env; though whether it works depends on whether that module is enabled in your PAM configuration.
You can also have other things read environment variables. If a user systemd instance is launched that starts the rest of your session, that will load environment variables from various places (it also affects things launched indirectly through it, eg. via D-Bus, that can't inherit your environment from the shell)
The "last" level in a typical GUI session is the shell in your terminal which will read the "traditional" files, but they aren't usually very useful for GUI applications because the GUI applications generally aren't started from any process that has a shell in its ancestry nowadays.