0

I'm running Firefox on Ubuntu 18.10 with a laptop that has a touchscreen. Apparently, Firefox needs to be told to support this by launching it with this command:

MOZ_USE_XINPUT2=1 /usr/bin/firefox

Now I normally launch firefox using the search key and then typing "firefox" followed by enter. How can I keep that process and have it launch with the xinput2 params I need?

3

1 Answer 1

0

You should first create your own new .desktop file by running

gedit ~/.local/share/applications/firefoxtouch.desktop

substitute gedit with any text editor you prefer

Now, put inside those file

    [Desktop Entry]
Name=Firefox Touch
Comment=
Exec=env MOZ_USE_XINPUT2=1 /usr/bin/firefox %u
Icon=firefox
Terminal=false
Categories=GNOME;GTK;Network;WebBrowser;
Type=Application
StartupNotify=true

and save. Now searching for Firefox should five you another entry for Firefox with custom parameter you need.

2
  • That works well, except searching now brings up both versions. Any way to consolidate so I only see one of them?
    – vince
    Nov 1, 2018 at 0:49
  • If you have root access you can edit "system" one instead of creating your personal. "/usr/share/applications/firefox.desktop" is system one. However i advise you against doing that - on each version update you will have to reedit it again. Maybe giving it somehow unique name is option? Nov 1, 2018 at 0:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .