Open lutzseverino opened 1 year ago
Welcome on Gradience. 🥳 We really appreciate your contribution. The core team will review your issue as soon as possible. You can also join the Matrix room: https://matrix.to/#/#Gradience-space:envs.net or the Discord server: https://discord.com/invite/4njFDtfGEZ
Hi, thank you for taking time and opening bug report!
If you have "Custom accent colors" extension installed make sure to disable it, this extension always causes this issue
No extensions are installed.
It seems like the permissions of my .config/gtk-X.0/gtk.css
files were incorrect, which is very odd. I'm unaware if that permission change could've been made by Gradience. It could be because I edited those files myself recently, and now they were read-only.
Fixing the permissions of those files seems to restore Gradience's ability to edit them. Maybe a warning could be in place, if permissions are incorrect, prompting the user to fix them instead of trying to edit the internal directory would be a solution for this edge case.
The permissions are correct in most cases, I'm using fedora and there are no permission issues, but yeah, maybe we should add a dialog for fixing permissions
@lutzseverino What file permissions you had when you couldn't apply a preset? Did file owner changed, or was it just set to read-only?
It may be because of shutil.copyfile()
function that we use in some areas (including preset functions), which doesn't copy ACLs.
owner
was unchanged, but it was read-only, and group
and others
were set to none.
owner
was unchanged, but it was read-only, andgroup
andothers
were set to none.
Exactly what I thought, it doesn't copy any permissions and sets default chmod perms (which are read-only for owner and nothing for group and others). I'll try to find some alternatives for copyfile()
. Thanks for the report
No problem, glad I could spot something myself.
Is there an existing issue for this?
What happened?
Might be related to #710.
Gradience is trying (and failing) to write to the internal config folder found at
/home/lutzseverino/.var/app/com.github.GradienceTeam.Gradience/config/gtk-4.0/gtk.css
(in my case, of course).Upon clicking "Apply", an error is thrown.
Troubleshooting
I can't seem to find a single way to even fix Gradience permission problem, even if it's trying to write to the incorrect folder.
To Reproduce
Expected behavior
Themes are applied, and the user files are modified.
Screenshots
No response
OS
Fedora Linux 37 (Workstation Edition)
DE/WM version
i3wm 4.22
Version
0.4.0
Installation method
Flatpak from Flathub
Enabled system extensions (GNOME specific)
No response
Additional context
No response
Code of Conduct