cjbassi / omnibar

A GTK based Wayland statusbar written in Rust (WIP)
MIT License
7 stars 0 forks source link

Missing style.css #1

Open bjoernfan opened 4 years ago

bjoernfan commented 4 years ago

Hi. I just found this project via Waybar. It didn't build for me, so I checked this out, and it built just fine!

However, after trying to run it the first time I'm getting this:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { domain: gtk-css-provider-error-quark, code: 2, message: "<broken file>:1:0Failed to import: Error opening file /home/bjorn/.config/waybar/style.css: No such file or directory" }', src/libcore/result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

The waybar thing in there looked a bit puzzling (I didn't see the ".config" part at first), but after copying over the file resources/style.css Waybar - that I just happened to have checked out and available - I'm getting this instead:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/f3e1a954d2ead4e2fc197c7da7d71e6c61bad196/src/libcore/macros/mod.rs:15:40
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

Thoughts?

cjbassi commented 4 years ago

There's probably a config option that's missing in the default waybar config that omnibar is expecting. I just hard-coded the values it expects based on my configuration :) omnibar isn't really intended to be used by the general populace at the moment, it's more just a proof of concept, maybe I should clarify that in the readme?