Can't save projects on Linux

I'm very new to using Linux. So forgive me if I should already know how to fix this, but its got me baffled.

Edit: I should mention that I have saved projects before. It just stopped working today

Arduino: 1.8.15 (Linux), Board: "Arduino Nano, ATmega328P"

java.io.IOException: Permission denied
	at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
	at java.base/java.io.File.createTempFile(File.java:2129)
	at processing.app.BaseNoGui.saveFile(BaseNoGui.java:886)
	at processing.app.SketchFile.save(SketchFile.java:287)
	at processing.app.Sketch.save(Sketch.java:138)
	at processing.app.SketchController.save(SketchController.java:352)
	at processing.app.Editor.handleSave2(Editor.java:1908)
	at processing.app.Editor.access$1000(Editor.java:117)
	at processing.app.Editor$11.run(Editor.java:1888)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Permission denied


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

With more testing I've discovered that it actually saves new projects to /tmp which I don't want so I still need a solution