reassign 1001724 firefox-esr thanks On Tue, Dec 14, 2021 at 04:18:36PM -0400, Joey Hess wrote: > Package: firefox > Version: 94.0.2-1 > Severity: normal > > I have a ~/bin/firefox wrapper script ahead of the usual firefox in PATH. > > #!/bin/sh > MOZ_USE_XINPUT2=1 /usr/bin/firefox "$@" > > This has a very surprising behavior, because /usr/bin/firefox contains: > > FIREFOX="$(command -v firefox)" > [ -x "$FIREFOX.real" ] && exec "$FIREFOX.real" "$@" > > So FIREFOX gets set to ~/bin/firefox and there is no ~/bin/firefox.real > to run. So instead it falls through and runs firefox-esr which I also happen > to have installed. Since firefox-esr doesn't use my usual firefox > config, my wrapper script effectively breaks the configuration. > > The workaround was to change my wrapper script to this: > > #!/bin/sh > MOZ_USE_XINPUT2=1 PATH=/usr/bin:$PATH exec firefox "$@" > > Although notice that this can turn into an infinite loop if firefox > is somehow not in /usr/bin anymore. Also it prevents firefox from running > any other wrapper scripts I might have in ~/bin when starting a program > such as a PDF viewer. So this is a suboptimal workaround. > > I don't know if there is a reason you are not using $0 or not simply > hardcoding the path to firefox.real, either seems like a way to avoid this.
Using $0 causes #818159. I guess hardcoding /usr/bin/firefox would work. Mike