material-you-theme icon indicating copy to clipboard operation
material-you-theme copied to clipboard

MaterialYou shell theme not being generated

Open IOplus opened this issue 2 years ago • 10 comments

I have npm, node and sass installed, the dependencies are all good, and I installed the User Themes extension through my distro's repository (Fedora 36). Still, when I try to use the extension I get this notification:

Screenshot from 2022-09-23 20-24-57

But it's okay, as seen in this comment, I just need to manually change it from the Gnome Tweaks app.

Screenshot from 2022-09-23 20-51-33

But there is no MaterialYou shell theme installed. I've tried logging out and restarting multiple times.

IOplus avatar Sep 24 '22 00:09 IOplus

Is there something in ~/.local/themes/? That's where the generated shell theme should be stored.

ardjuh avatar Sep 24 '22 20:09 ardjuh

Is there something in ~/.local/themes/? That's where the generated shell theme should be stored.

That directory didn't even exist in my computer, just tried creating it and reactivating the extension, but I sill have the same notification and the directory is empty...

I do have a different directory structure, cause I dual boot two distros, so I divide my home partition a little bit differently. My home directory is located on /home/Fedora/issa20omais instead of /home/issa20omais. Could that be the problem?

IOplus avatar Sep 24 '22 21:09 IOplus

Is there something in ~/.local/themes/?

That's where the generated shell theme should be stored.

Okay, I've made some advancements. I created the directory ~/.local/share/themes and then tried to use the extension, and it created a folder 'MaterialYou' in that directory. But the folder is practically empty, there's only a 'gnome-shell' folder in it, which is empty.

IOplus avatar Sep 28 '22 13:09 IOplus

I have the exact same issue, and I did the exact same thing, and the extension crashed.

The settings of extension [email protected] had an error:
TypeError: ext_utils.check_npm is not a function

Stack trace:
fillPreferencesWindow@/usr/share/gnome-shell/extensions/[email protected]/prefs.js:206:20
_init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:27:29
ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:129:33
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

i-am-wololo avatar Sep 28 '22 18:09 i-am-wololo

I found this running journalctl /usr/bin/gnome-shell -f -o cat:

JS ERROR: ReferenceError: loop is not defined
compile_sass/<@/home/Fedora/issa20omais/.local/share/gnome-shell/extensions/[email protected]/extension.js:345:17

Gio.IOErrorEnum: Error creating directory /home/Fedora/issa20omais/.config/gtk-4.0: File exists
Gio.IOErrorEnum: Error creating directory /home/Fedora/issa20omais/.config/gtk-3.0: File exists
Gio.IOErrorEnum: Error creating directory /home/Fedora/issa20omais/.local/share/themes/MaterialYou: File exists
Gio.IOErrorEnum: Error creating directory /home/Fedora/issa20omais/.local/share/themes/MaterialYou/gnome-shell: File exists
JS ERROR: ReferenceError: loop is not defined
compile_sass/<@/home/Fedora/issa20omais/.local/share/gnome-shell/extensions/[email protected]/extension.js:345:17

Gio.IOErrorEnum: Error creating directory /home/Fedora/issa20omais/.config/gtk-4.0: File exists
Gio.IOErrorEnum: Error creating directory /home/Fedora/issa20omais/.config/gtk-3.0: File exists

IOplus avatar Sep 29 '22 10:09 IOplus

Maybe it works if we empty the folders if they exist, but I'm very busy at the moment, so if someone has some free time, it shouldn't be very difficult.

ardjuh avatar Oct 03 '22 15:10 ardjuh

The loop is not defined error is already fixed

ardjuh avatar Oct 03 '22 15:10 ardjuh

Maybe it works if we empty the folders if they exist, but I'm very busy at the moment, so if someone has some free time, it shouldn't be very difficult.

I've already tried emptying/deleting the folders, but I get pretty much the same error, except for the last line:

JS ERROR: ReferenceError: loop is not defined
compile_sass/<@/home/Fedora/issa20omais/.local/share/gnome-shell/extensions/[email protected]/extension.js:345:17

Gio.IOErrorEnum: Error creating directory /home/Fedora/issa20omais/.config/gtk-4.0: File exists
JS ERROR: GLib.FileError: Failed to open file “/home/Fedora/issa20omais/.config/gtk-3.0/bookmarks”: No such file or directory

IOplus avatar Oct 04 '22 03:10 IOplus

Did you empty them by hand or with code? If you did it by code, can you link the code then.

ardjuh avatar Oct 07 '22 15:10 ardjuh

Did you empty them by hand or with code? If you did it by code, can you link the code then.

I just ran: mv ~/.config/gtk-4.0 ~/.config/gtk-4.0.old && mv ~/.config/gtk-3.0 ~/.config/gtk-3.0.old && rm -rf ~/.local/share/themes/MaterialYou And then I made sure the folders didn't exist by trying to cd into them

IOplus avatar Oct 07 '22 16:10 IOplus

Okay, things just started working, I don't know what happened but the shell theme is fine now.

IOplus avatar Oct 19 '22 21:10 IOplus

@IOplus I have the same problem, can you share your version and installation method? I install this by clone the git repo, and run make && make install, gnome shell version is 43.0, I have a empty ~/.local/share/themes/MaterialYou directory, and log error JS ERROR: ReferenceError: loop is not defined, and I try mv ~/.config/gtk-4.0 ~/.config/gtk-4.0.old && mv ~/.config/gtk-3.0 ~/.config/gtk-3.0.old && rm -rf ~/.local/share/themes/MaterialYou, it's not work.

everyx avatar Nov 01 '22 15:11 everyx

I install it with the AUR package

Le mar. 1 nov. 2022, 16:11, Gavin Luo @.***> a écrit :

@IOplus https://github.com/IOplus I have the same problem, can you share your version and installation method? I install this by clone the git repo, and run make && make install, gnome shell version is 43.0, I have a empty ~/.local/share/themes/MaterialYou directory, and log error JS ERROR: ReferenceError: loop is not defined, and I try mv ~/.config/gtk-4.0 ~/.config/gtk-4.0.old && mv ~/.config/gtk-3.0 ~/.config/gtk-3.0.old && rm -rf ~/.local/share/themes/MaterialYou, it's not work.

— Reply to this email directly, view it on GitHub https://github.com/avanishsubbiah/material-you-theme/issues/59#issuecomment-1298666654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPEHOIQNKO7UXMBR3JPXITWGEXKLANCNFSM6AAAAAAQUNMZSE . You are receiving this because you commented.Message ID: @.***>

i-am-wololo avatar Nov 01 '22 15:11 i-am-wololo

I just fixed the loop bug. I don't know why these files cause problems (I don't think this bug fix is going to fix it). Can you try removing the files completely and then enabling this extension?

ardjuh avatar Nov 01 '22 15:11 ardjuh

I just fixed the loop bug. I don't know why these files cause problems (I don't think this bug fix is going to fix it). Can you try removing the files completely and then enabling this extension?

After reinstall from Gnome extension website, It's get work(shell theme css generate successfully), but there are still some error messages in the log

Gio.IOErrorEnum: 创建目录 /home/everyx/.local/share/themes/MaterialYou 时出错:文件已存在
Gio.IOErrorEnum: 创建目录 /home/everyx/.local/share/themes/MaterialYou/gnome-shell 时出错:文件已存在
Gio.IOErrorEnum: 创建目录 /home/everyx/.config/gtk-4.0 时出错:文件已存在
Gio.IOErrorEnum: 创建目录 /home/everyx/.config/gtk-3.0 时出错:文件已存在
loading user theme: /home/everyx/.local/share/themes/MaterialYou/gnome-shell/gnome-shell.css
loading user theme: /home/everyx/.local/share/themes/MaterialYou/gnome-shell/gnome-shell.css
JS ERROR: ReferenceError: loop is not defined
compile_sass/<@/home/everyx/.local/share/gnome-shell/extensions/[email protected]/extension.js:345:17

everyx avatar Nov 02 '22 00:11 everyx