TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: BOB PROHASKA
from: ROGER BELL_WEST
date: 2020-08-02 22:37:00
subject: Re: Upside-down maps in c

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

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.