Fix config not loading
This commit is contained in:
@@ -18,7 +18,11 @@ pub const APP_NAME: &str = "net.jmb19905.jmb-bar";
|
||||
fn main() {
|
||||
info!(&LOGGER, "Starting jmb-bar");
|
||||
|
||||
let config = Config::load();
|
||||
let config = Config::load("jmb-bar.conf");
|
||||
let config = config.unwrap_or_else(|| {
|
||||
warn!(&LOGGER, "Couldn't load config file, using default");
|
||||
Config::default()
|
||||
});
|
||||
let backend = Backend::start(&config);
|
||||
|
||||
gio::resources_register_include!("templates.gresource").expect("Failed to register resources");
|
||||
|
||||
Reference in New Issue
Block a user