From 71402fe01b9d4369780292372352a73593d85719 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Tue, 25 Nov 2025 08:59:28 -0800 Subject: [PATCH] docs(wm): update splash for students --- komorebi/src/process_event.rs | 4 +++- komorebic/src/main.rs | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index d16c2db9..cc58e8d7 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -52,7 +52,9 @@ pub fn listen_for_events(wm: Arc>) { if mdm && splash::should().map(|f| f.into()).unwrap_or(true) { let mut args = vec!["splash".to_string()]; if let Some(server) = server { - args.push(server); + if !server.trim().is_empty() { + args.push(server); + } } let _ = Command::new("komorebic").args(&args).spawn(); diff --git a/komorebic/src/main.rs b/komorebic/src/main.rs index 6e8480a4..68975375 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -1619,7 +1619,8 @@ fn main() -> eyre::Result<()> { The Komorebi License does not permit any kind of commercial use\n\n\ A dedicated Individual Commercial Use License is available if you wish to use this software at work\n\n\ You are strongly encouraged to make your employer pay for your license, either directly or via reimbursement\n\n\ - To remove this popup in the future, run \"komorebic license \" using the email address associated with your license".to_string() + To remove this popup in the future, run \"komorebic license \" using the email address associated with your license\n\n\ + If you are a student using komorebi on a laptop provided by your school, you can email me from your educational email account to remove this popup".to_string() } Some(server) => { format!( @@ -1627,7 +1628,8 @@ fn main() -> eyre::Result<()> { The Komorebi License does not permit any kind of commercial use\n\n\ A dedicated Individual Commercial Use License is available if you wish to use this software at work\n\n\ You are strongly encouraged to make your employer pay for your license, either directly or via reimbursement\n\n\ - To remove this popup in the future you can run \"komorebic license \" using the email address associated with your license" + To remove this popup in the future you can run \"komorebic license \" using the email address associated with your license\n\n + If you are a student using komorebi on a laptop provided by your school, you can email me from your educational email account to remove this popup" ) } };