Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git
src/bin/cce.rs (699B)
1 use std::env;
2
3 fn main() {
4 let args: Vec<String> = env::args().collect();
5
6 if args.len() > 1 {
7 match args[1].as_str() {
8 "client" => {
9 println!("cce: standalone client mode is deprecated in the monolithic architecture");
10 std::process::exit(0);
11 }
12 "--help" | "-h" | "help" => {
13 print_help();
14 }
15 _ => {
16 cce_fx::run_server();
17 }
18 }
19 } else {
20 cce_fx::run_server();
21 }
22 }
23
24 fn print_help() {
25 println!("usage: cce [options]");
26 println!();
27 println!(" (default) Start the monolithic compositor and window manager");
28 }