refactor: compile applets as multicall binary

This commit is contained in:
Michael Aaron Murphy 2024-03-14 18:47:41 +01:00 committed by Michael Murphy
parent 4099624499
commit 3c4acdacd7
48 changed files with 2393 additions and 2256 deletions

View file

@ -0,0 +1,14 @@
// SPDX-License-Identifier: MPL-2.0-only
mod app;
mod config;
mod localize;
mod wayland_handler;
mod wayland_subscription;
use localize::localize;
pub fn run() -> cosmic::iced::Result {
localize();
app::run()
}

View file

@ -1,23 +1,10 @@
// SPDX-License-Identifier: MPL-2.0-only
mod app;
mod config;
mod localize;
mod wayland_handler;
mod wayland_subscription;
use log::info;
use localize::localize;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
const VERSION: &str = env!("CARGO_PKG_VERSION");
fn main() -> cosmic::iced::Result {
// Initialize logger
tracing_subscriber::fmt::init();
let _ = tracing_log::LogTracer::init();
info!("Iced Workspaces Applet ({VERSION})");
// Prepare i18n
localize();
app::run()
tracing::info!("Starting cosmic-app-list with version {VERSION}");
cosmic_app_list::run()
}