2022-11-29 16:52:31 -05:00
|
|
|
mod components;
|
|
|
|
|
#[rustfmt::skip]
|
|
|
|
|
mod config;
|
2022-06-08 23:51:33 -04:00
|
|
|
mod localize;
|
|
|
|
|
mod wayland;
|
2022-11-29 16:52:31 -05:00
|
|
|
mod wayland_subscription;
|
2022-06-08 10:47:16 -04:00
|
|
|
|
2024-01-18 18:18:27 -05:00
|
|
|
use tracing::info;
|
2022-06-08 10:47:16 -04:00
|
|
|
|
2022-11-29 16:52:31 -05:00
|
|
|
use localize::localize;
|
2022-06-08 10:47:16 -04:00
|
|
|
|
2024-01-18 18:16:37 -05:00
|
|
|
use crate::components::app;
|
|
|
|
|
|
|
|
|
|
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
2022-08-16 14:36:31 -04:00
|
|
|
|
2022-11-29 16:52:31 -05:00
|
|
|
fn main() -> cosmic::iced::Result {
|
2022-06-08 10:47:16 -04:00
|
|
|
// Initialize logger
|
2024-01-18 18:16:37 -05:00
|
|
|
tracing_subscriber::fmt::init();
|
|
|
|
|
let _ = tracing_log::LogTracer::init();
|
|
|
|
|
|
|
|
|
|
info!("Starting audio applet with version {VERSION}");
|
|
|
|
|
info!("Iced Workspaces Applet ({VERSION})");
|
2022-06-08 10:47:16 -04:00
|
|
|
|
2022-11-29 16:52:31 -05:00
|
|
|
// Prepare i18n
|
2022-06-08 10:47:16 -04:00
|
|
|
localize();
|
2022-06-16 13:00:27 -04:00
|
|
|
|
2022-11-29 16:52:31 -05:00
|
|
|
app::run()
|
2022-06-08 10:47:16 -04:00
|
|
|
}
|