~mil/sxmo-devel

1

Firefox environmental variables

Details
Message ID
<87y2pcwo18.fsf@momi.ca>
DKIM signature
missing
Download raw message
Firefox has a number of environmental variables that allow for more
comfortable use on touch devices. See:

https://wiki.postmarketos.org/wiki/Firefox

Specifically, I was thinking of submitting a patch that set
`MOZ_USE_XINPUT2=1` (touch) by default in
`sxmo-utils/scripts/core/sxmo_appmenu.sh` and
`sxmo-utils/scripts/core/sxmo_urlhandler.sh`.

This would create a better out of the box experience for sxmo.

Would this patch be accepted? Is it out of scope of the project?
Details
Message ID
<d2779b4d-c777-41b2-a387-2fec4f26acab@www.fastmail.com>
In-Reply-To
<87y2pcwo18.fsf@momi.ca> (view parent)
DKIM signature
missing
Download raw message
I don't see the harm in setting a few convenience environment variables like this - the only caveat I'd say is that it should still be possible for the user to override these variables. Haven't done extensive testing but i was looking into something similar for $TERM and $BROWSER:
https://git.sr.ht/~mil/sxmo-utils/tree/master/scripts/core/sxmo_xinit.sh

I wouldn't have a problem adding MOZ_USE_XINPUT2=1 if the user can override it. Probably the `sxmo_xinit.sh` script is the place to add and that way we keep all of these variables that can potentially be overridden in one place.

Miles

On Thu, May 28, 2020, at 1:50 AM, Anjandev Momi wrote:
> Firefox has a number of environmental variables that allow for more
> comfortable use on touch devices. See:
> 
> https://wiki.postmarketos.org/wiki/Firefox
> 
> Specifically, I was thinking of submitting a patch that set
> `MOZ_USE_XINPUT2=1` (touch) by default in
> `sxmo-utils/scripts/core/sxmo_appmenu.sh` and
> `sxmo-utils/scripts/core/sxmo_urlhandler.sh`.
> 
> This would create a better out of the box experience for sxmo.
> 
> Would this patch be accepted? Is it out of scope of the project?
>
Reply to thread Export thread (mbox)