I updated Arduino flatpak to 2.3.4 and when it runs it just gives a title bar and no IDE.
When running from command line:
/usr/bin/flatpak run --branch=stable --arch=x86_64 cc.arduino.IDE2
it gives a lot of this error:
ERROR:shared_context_state.cc(98)] Skia shader compilation error
But when I start it iwth:
/usr/bin/flatpak run --branch=stable --arch=x86_64 cc.arduino.IDE2 --disable-gpu
it runs fine.
So my question is, how do I put the “–disable-gpu” on the startup script for flatpak?
When I do this it gives an error.
flatpak override cc.arduino.IDE2 --env=“–disable-gpu”
And enabling GPU on flatseal does not work either.
The same way you’d do it for any other app: copy its .desktop file to ~/.local/share/applications/ and edit the Exec= line. For a system-installed app, you can find it in /var/lib/flatpak/exports/share/applications/
When I did that there was no change, it is like the startup file disregards the command line parameter.
It does accept the file to open parameter but not a --disable-gpu.
The GPU is an Intel built in, a Dell Venue Pro 7140 tablet.
This is what I changed it to:
#!/bin/sh
exec /usr/bin/flatpak run --branch=stable --arch=x86_64 cc.arduino.IDE2 --disable-gpu “$@”
When I added the --disable-gpu parameter to the startup file in ~/.local/share/applications/ and started Arduino from the icon in “Applications” it did not work.
When I run the startup file from the command line it does eg:
.local/share/applications/cc.arduino.IDE2
Would that indicate a bug in flatpak or how I am doing things?
You needed to copy the .desktop file, not make a shell script there.
Copy /var/lib/flatpak/exports/share/applications/cc.arduino.IDE2.desktop into ~/.local/share/applications/, then edit the copy and change the line starting with Exec=.
.desktop files are what desktop environments use to launch applications.