-
Install Flatseal from Flathub.
-
Open
Arduino IDE V2
's entry on Flatseal. Under theFilesystem access
section , disable theAll user files
toggle and scroll down to theOther files
setting. Add the directory/directories where you want to access sketches from.
XDG directories are supported (and recommended). If possible, append:ro
to keep access to sketch directories you don't intend to modify read-only. -
Add
.arduinoIDE
and.arduino15
to thePersistent
section. -
(Optional) Move the
~/.arduinoIDE
and~/arduino15
folders to~/.var/app/cc.arduino.IDE2
. -
Change the Sketchbook location at File > Preferences.