feat: centralize default constants and refactor overlay enter handling in TUI
This commit is contained in:
@@ -29,7 +29,8 @@ use crate::state::create_session;
|
||||
/// save settings, and release the lock.
|
||||
pub fn run_daemon() -> Result<()> {
|
||||
tracing::info!("starting daemon process");
|
||||
let (store, _session_lock_guard, mut state, _rt) = create_session()?;
|
||||
let (store, _session_lock_guard, mut state, rt) = create_session()?;
|
||||
let _guard = rt.enter();
|
||||
|
||||
let run_dir = store.base_dir.join("run");
|
||||
std::fs::create_dir_all(&run_dir)?;
|
||||
|
||||
Reference in New Issue
Block a user