Roger Bell_West wrote:
> On 2020-08-02, bob prohaska wrote:
>>There's still a fly in the ointment. Editing
>>/usr/share/applications/chromium-browser.desktop
>>to contain the line
>>Exec=MESA_EXTENSION_OVERRIDE=-GL_MESA_framebuffer_flip_y chromium-browser %U
>>chromium still inverts the map at
>>https://www.fire.ca.gov/incidents/
>>
>>However, if I use the line
>>MESA_EXTENSION_OVERRIDE=-GL_MESA_framebuffer_flip_y chromium-browser
>>in a terminal window to start the browser, the map displays correctly.
>
> OK, what's happening is that the icon definition isn't running your
> Exec through a full shell. Which isn't unreasonable.
>
> What you need is a shell wrapper. Call it, say, /usr/local/bin/cr:
>
> #! /bin/bash
>
> export MESA_EXTENSION_OVERRIDE=-GL_MESA_framebuffer_flip_y
> exec chromium-browser "$@"
>
> (the "$@" effectively means "pass on any parameters you received")
>
> and chmod it 755.
>
> Then turn the .desktop file to point at that:
>
> Exec=/usr/local/bin/cr %U
I must admit this has become far more complex than expected 8-)
Since the workaround showed up in a Raspberry Pi Foundation forum
it's likely to get fixed before too much longer (I hope!). For
now I'll just make a one-line script and start it from the command
line.
Icons are nice, but sometimes more trouble than they're worth.
Many thanks for everyone's help!
bob prohaska
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|