chore: add SPDX license identifiers

This commit is contained in:
Michael Aaron Murphy 2024-05-06 15:39:04 +02:00 committed by Michael Murphy
parent b9308af4b7
commit 8527257ddd
96 changed files with 275 additions and 39 deletions

View file

@ -1,3 +1,6 @@
// Copyright 2024 System76 <info@system76.com>
// SPDX-License-Identifier: GPL-3.0-only
use crate::window::Window;
use config::{Config, CONFIG_VERSION};
use cosmic::cosmic_config;
@ -23,31 +26,32 @@ pub fn run() -> cosmic::iced::Result {
let config = match Config::get_entry(&config_handler) {
Ok(ok) => ok,
Err((errs, config)) => {
eprintln!("errors loading config: {:?}", errs);
tracing::error!("errors loading config: {:?}", errs);
config
}
};
(Some(config_handler), config)
}
Err(err) => {
eprintln!("failed to create config handler: {}", err);
tracing::error!("failed to create config handler: {}", err);
(None, Config::default())
}
};
let (comp_config_handler, comp_config) =
match cosmic_config::Config::new("com.system76.CosmicComp", CosmicCompConfig::VERSION) {
Ok(config_handler) => {
let config = match CosmicCompConfig::get_entry(&config_handler) {
Ok(ok) => ok,
Err((errs, config)) => {
eprintln!("errors loading config: {:?}", errs);
tracing::error!("errors loading config: {:?}", errs);
config
}
};
(Some(config_handler), config)
}
Err(err) => {
eprintln!("failed to create config handler: {}", err);
tracing::error!("failed to create config handler: {}", err);
(None, CosmicCompConfig::default())
}
};