Jas-SinghFSU / HyprPanel

A Bar/Panel for Hyprland with extensive customizability.
MIT License
570 stars 41 forks source link

ags -r useTheme returns undefined #280

Open guillaume-bonnefoy opened 2 weeks ago

guillaume-bonnefoy commented 2 weeks ago

Describe the bug ags -r useTheme command bugs out, returns undefined, restarts AGS without changing the theme. The import / export buttons from the settings work fine.

To Reproduce

➜  ~ ags -r "useTheme('/home/user/.config/hypr/hyprpanel_config_transparent.json')"
undefined

Expected behavior Theme should be imported.

Desktop (please complete the following information):

Thanks a lot for your active developpement ❤️

Jas-SinghFSU commented 2 weeks ago

In your file path I see '/home/user/...' , are you replacing that with your actual username?

guillaume-bonnefoy commented 2 weeks ago

Yes, i redacted it. Actually when i entered a wrong file name, i got a file not found error.

Jas-SinghFSU commented 2 weeks ago

Ahh gotcha. I'll have to look into it later today.

Jas-SinghFSU commented 1 week ago

So I was able to test this and it seems to work. Could you share your theme file please?

Ohhhhh your path is incorrect, sorry I missed that... It should be /home/user/.config/ags and not .config/hypr.

guillaume-bonnefoy commented 1 week ago

Sure, here it is. Wild guess, could it be that the export is not a full ags one ? The default theme one seem more complete. hyprpanel_config_plain.json

guillaume-bonnefoy commented 1 week ago

Didn't see your edit, testing it !

guillaume-bonnefoy commented 1 week ago

I'm still getting the same behaviour.

➜  ~ ags -r "useTheme('/home/whiterqbbit/.config/ags/hyprpanel_config_plain.json')"
undefined

I might try to log what happens tomorrow if I have time