Gradience fails to apply themes. "OSError Read-only file system"

The Gradience flatpak refuses to apply any themes I give it, whether it's my generated ones or the ones included (such as the Vapor theme). It spits out the following error on trying to apply the theme:
Traceback (most recent call last):
File "/app/lib/python3.10/site-packages/gradience/frontend/main.py", line 623, in apply_color_scheme
PresetUtils().apply_preset("gtk4", self.preset)
File "/app/lib/python3.10/site-packages/gradience/backend/theming/preset_utils.py", line 258, in apply_preset
with open(
OSError: [Errno 30] Read-only file system: '/home/geechan/.var/app/com.github.GradienceTeam.Gradience/config/gtk-4.0/gtk.css'
Traceback (most recent call last):
File "/app/lib/python3.10/site-packages/gradience/frontend/main.py", line 623, in apply_color_scheme
PresetUtils().apply_preset("gtk4", self.preset)
File "/app/lib/python3.10/site-packages/gradience/backend/theming/preset_utils.py", line 258, in apply_preset
with open(
OSError: [Errno 30] Read-only file system: '/home/geechan/.var/app/com.github.GradienceTeam.Gradience/config/gtk-4.0/gtk.css'
I have a pretty good guess as to what's going on, but not sure how to resolve it. I believe Gradience is trying to access my home directory, but fails to read the symlink under /home/ where it should be /var/home/. I've run into this same issue with some other apps too, and it always required me to manually specify /var/home/, but Gradience lacks an option to specify the working directory. If there's a proper solution to fix the /home symlink issues (or if it's a different problem entirely), I'd appreciate some help. Thanks!
Solution:
Update: fixed by setting the flatpak file permissions xdg-config/gtk-3.0:ro and xdg-config/gtk-4.0:ro to xdg-config/gtk-3.0 xdg-config/gtk-4.0 for Gradience, respectively. Gradience doesn't play nicely with the default permissions
Jump to solution
2 Replies
Solution
Geechan
Geechan9mo ago
Update: fixed by setting the flatpak file permissions xdg-config/gtk-3.0:ro and xdg-config/gtk-4.0:ro to xdg-config/gtk-3.0 xdg-config/gtk-4.0 for Gradience, respectively. Gradience doesn't play nicely with the default permissions
Kyle Gospo
Kyle Gospo9mo ago
interesting, that should have been default I will see about adding that to the flatpak setup service so it's configured ahead of time
Want results from more Discord servers?
Add your server