Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid CSS prints file not found #17

Closed
asbachb opened this issue Apr 4, 2023 · 3 comments
Closed

Invalid CSS prints file not found #17

asbachb opened this issue Apr 4, 2023 · 3 comments

Comments

@asbachb
Copy link

asbachb commented Apr 4, 2023

When you try to load a CSS which has an invalid syntax it's classified as "file not found" when you try to run nwg-bar with that css.

[asbachb@arch-t14s nwg-bar]$ nwg-bar -t ~/.config/nwg-bar/bar-reboot.json -s /home/asbachb/.config/nwg-bar/style-reboot.css 
2 items loaded from template /home/asbachb/.config/nwg-bar/bar-reboot.json
Preferring dark theme variants
/home/asbachb/.config/nwg-bar/style-reboot.css file not found, using GTK styling
@nwg-piotr
Copy link
Owner

Yeah, I'll change it to fmt.Printf("%s file erroneous or not found, using GTK styling\n", *cssFileName) in line 144.

nwg-bar/main.go

Line 144 in 194bfce

fmt.Printf("%s file not found, using GTK styling\n", *cssFileName)

@asbachb
Copy link
Author

asbachb commented Apr 4, 2023

Maybe when the err obj contains some more information what failed during the load.

@nwg-piotr
Copy link
Owner

Just check if the file exists. If it does, it must be buggy. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants