I'm using Fedora 35 and GNOME 40. After installing the Arduino (1.8.15), I am noticing some very odd behavior.
First, I cannot change the location of my sketch folder. It's forcing me to stay within the primary hard drive.
For example, I have a second hard drive mapped to "/data". I cannot choose that option.
I've manually edited the location but it doesn't seem to work.
I've gone into the preferences.txt file and confirmed the path is correct but, again, it will not save/load to that location.
When browsing for files, the file browser acts very strangely. Showing weird locations and not letting me click on certain paths.
Below you can see what I mean. The "Dropbox" folder is not accessible. It's showing very old USB drives many times ("Blah") which I haven't had mounted in a while. Etc...
Any ideas how to make this thing behave?
On a side note.
I am a huge fan of VS Code. So I would not be opposed to just using it if I can get code uploading, serial, etc. to work there. I just thought I would give the official IDE a chance.
How did you install the Arduino IDE? Was it downloaded from the official Arduino Software page, or did you get a 3rd party variant from a package manager?
Is there a specific reason you are using Arduino IDE 1.8.15 instead of the latest 1.8.19 version?
So I installed via the official download. That did not work. In fact, the menu items were completely blank.
I then removed it and found it on the Flatpack site (which, IIRC, is used by Fedora a lot).
Installed it from there (newest version) and exact same thing. It's forcing me to use the path "/home/cbmeeks/Arduino" as the location. Changing the location and bouncing it reverts back.
I can't even manually open a file from the "/data" folder.
I suspect this is the reason for the odd behavior you observed. I haven't used the Arduino IDE Snap, but have had similar problems with other Snaps due to the "sandboxing" behavior of Snapcraft.
Now we are on familiar ground! I believe it is this bug:
Actually, a friendly Reddit user helped me solve the issue! Yeah, it's totally the way Flatpak and Snap sandbox the apps.
For anyone else having this issue, installing Flatseal fixed it for me. Basically, it allows you to "punch" holes in the sandbox and turn on things like global file systems, network access, etc.