unite-shell icon indicating copy to clipboard operation
unite-shell copied to clipboard

gtk.css replaced on login

Open gileslaw opened this issue 2 years ago • 3 comments

The file gtk.css in .config/gtk-4.0/ is being replaced every time I log in. If I try to stop this from happening by not giving the system permission to remove the file the extension breaks with this error.

GLib.FileError: Failed to rename file “/home/gileslaw/.config/gtk-4.0/gtk.css.PWNW41” to “/home/gileslaw/.config/gtk-4.0/gtk.css”: g_rename() failed: Operation not permitted

Is this a bug? I don't see a reason why I wouldn't be able to use a custom gtk.css file with this extension.

Nobara 37

May 12 20:45:37 derp-x8664 flatpak[81281]: WARN amberol::audio::song > Unable to open file "/run/user/1000/doc/f2> May 12 20:45:37 derp-x8664 flatpak[81281]: WARN amberol::audio::song > Unable to open file "/run/user/1000/doc/f2> May 12 20:59:15 derp-x8664 gnome-shell[75193]: #10 55a8374b1818 i /home/gileslaw/.local/share/gnome-shell/exten> May 12 20:59:15 derp-x8664 gnome-shell[75193]: #10 55a8374b1818 i /home/gileslaw/.local/share/gnome-shell/exten> May 12 20:59:15 derp-x8664 gnome-shell[75193]: #10 55a8374b1818 i /home/gileslaw/.local/share/gnome-shell/exten> May 12 20:59:15 derp-x8664 gnome-shell[75193]: #10 55a8374b1818 i /home/gileslaw/.local/share/gnome-shell/exten> May 12 20:59:15 derp-x8664 gnome-shell[75193]: JS ERROR: TypeError: this._settings is null _sync@resource:///org/gnome/shell/ui/dateMenu.js:767:28 _updateCount@resource:///org/gnome/shell/ui/dateMenu.js:763:14 _onSourceRemoved@resource:///org/gnome/shell/ui/dateMenu.js:755:14 _removeSource@resource:///org/gnome/shell/ui/messageTray.js:989:14 _addSource/<@resource:///org/gnome/shell/ui/messageTray.js:981:35 destroy@resource:///org/gnome/shell/ui/messageTray.js:779:14 destroy@resource:///org/gnome/shell/ui/windowAttentionHandler.js:94:> _init/<@resource:///org/gnome/shell/ui/windowAttentionHandler.js:68:> activateWindow@resource:///org/gnome/shell/ui/main.js:737:16 _onAttention@/home/gileslaw/.local/share/gnome-shell/extensions/unit> May 12 20:59:15 derp-x8664 gnome-shell[75193]: JS ERROR: TypeError: this._settings is null _sync@resource:///org/gnome/shell/ui/dateMenu.js:767:28 _updateCount@resource:///org/gnome/shell/ui/dateMenu.js:763:14 _onSourceRemoved@resource:///org/gnome/shell/ui/dateMenu.js:755:14 _removeSource@resource:///org/gnome/shell/ui/messageTray.js:989:14 _addSource/<@resource:///org/gnome/shell/ui/messageTray.js:981:35 destroy@resource:///org/gnome/shell/ui/messageTray.js:779:14 destroy@resource:///org/gnome/shell/ui/windowAttentionHandler.js:94:> _init/<@resource:///org/gnome/shell/ui/windowAttentionHandler.js:68:> activateWindow@resource:///org/gnome/shell/ui/main.js:737:16 _onAttention@/home/gileslaw/.local/share/gnome-shell/extensions/unit> May 12 20:59:15 derp-x8664 gnome-shell[75193]: JS ERROR: TypeError: this._settings is null _sync@resource:///org/gnome/shell/ui/dateMenu.js:767:28 _updateCount@resource:///org/gnome/shell/ui/dateMenu.js:763:14 _onSourceRemoved@resource:///org/gnome/shell/ui/dateMenu.js:755:14 lines 1-33

I really love this extension and I would love to continue to use it, while still being able to theme my Gnome.

gileslaw avatar May 19 '23 01:05 gileslaw

I have noticed the same issue, and this is so annoying.

Even Gradience is useless because of this.

Edit: This was the culprit in my case: https://forum.manjaro.org/t/changes-to-config-gtk-3-0-gtk-css-reset-after-restart/136107/17

paulo-roger avatar Aug 06 '23 06:08 paulo-roger

As you can see here, the extension does not remove the contents of the gtk.css file. It just prepends some styles wrapping them in /* UNITE ... UNITE */ comment blocks so they can be removed without affecting your custom styles.

Are you sure that unite removes your custom gtk styles?

jonian avatar Aug 09 '23 19:08 jonian