Page MenuHomeSolus

Add MOZ_USE_XINPUT2 Environment Variable to firefox .desktop File
Closed, WontfixPublic

Description

To add touchscreen support for Firefox you need to add MOZ_USE_XINPUT2=1 as an environment variable. For ease of use it would be good to include this in the .desktop file of firefox. You need to add this at multiple locations.

[Desktop Entry]
...
Exec=env MOZ_USE_XINPUT2=1 firefox %u
...
[Desktop Action new-window]
...
Exec=env MOZ_USE_XINPUT2=1 firefox --new-window %u
...
[Desktop Action new-private-window]
...
Exec=env Exec=env MOZ_USE_XINPUT2=1 firefox --private-window %u
...
[Desktop Action new-tab]
...
Exec=env MOZ_USE_XINPUT2=1 firefox --new-tab about:newtab

Firefox .desktop file is located at /usr/share/applications/firefox.desktop

Event Timeline

akrenz created this task.Apr 6 2020, 9:31 PM
Jacek awarded a token.Apr 7 2020, 8:36 AM

Ping. Just to bring this Topic back to life.

@akrenz no need to ping, because we can see it.

@kyrios123 your opinion?

This wouldn't be the correct way of setting this, it should be a profile variable shipped in a .sh in /usr/share/defaults/etc/profile.d/.

We're not targeting touchscreen support and I'm curious as to why this isn't enable by them by default. This is something they'd typically do unless there was some known issue that they were waiting to resolve before apply this as a default configuration.

JoshStrobl triaged this task as Needs More Info priority.Apr 15 2020, 2:29 PM
akrenz added a comment.EditedApr 16 2020, 1:34 PM

It looks like there is an issue if someone is using a non-GNOME Window Manager (like kwin for KDE Plasma). See Bug Report: 1182700

Setting this option could sometimes result in the following behaviour:

  1. Open firefox and put it next to another GUI application (could be terminal)
  2. Try to scroll via mouswheel on a scrollable site in Firefox
  3. Click on the other application (next to firefox)
  4. Move your cursor back over Firefox (WITHOUT clicking it!) and try to scroll via mousewheel.

Sometimes the second scrolling does not work. Sometimes only the first scroll-tick gets lost. Second one and every tick afterwards works. Everything else is also working.

Since Budgie is using GNOME Window manager (as is GNOME) it does not happen there. I do not have a KDE Plasma installed machine here. Maybe someone can try out firefox with the MOZ_USE_XINPUT2=1 option to see if it happens there?

This issue will not happen if you are running the gnome window manager or are running on Wayland. See Gnome Bug 558

In my oppinion loosing Touch Screen and two finger mouspad scrolling on firefox for all DE's is a much bigger issue then to loose a the first scroll tick on KDE Plasma if the window loosed focus.

Alternative: Create a package which adds MOZ_USE_XINPUT2=1 as an environment variable and puts it into an .sh inside usr/share/defaults/etc/profile.d/.

Any further information required?

Well in my opinion as long as this causes issues on Plasma, it shouldn't be set as default.

Well in my opinion as long as this causes issues on Plasma, it shouldn't be set as default.

Agreed. That's a non-starter.

this seems to be fixed in plasma 5.19

JoshStrobl closed this task as Wontfix.Wed, Jun 17, 3:54 PM

If it's fixed in Plasma in 5.19 and it's Plasma-specific, don't see a reason to keep this open. Girt will be able to work on newer Qt5 and plasma bits once my OpenSSL stuff lands and is stabilized in unstable starting this weekend.