mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-25 19:01:19 +01:00
fix(wm): always check/ensure datadir creation
A user reported in an issue that their komorebi data dir did not persist across reboots. While there have not been any other reports of this type of system behaviour, it's worth just doing a mkdir -p equivalent call whenever komorebi.exe is starting to ensure that the socket files can always be created no matter what. re #731
This commit is contained in:
@@ -34,6 +34,7 @@ use komorebi::window_manager::WindowManager;
|
||||
use komorebi::windows_api::WindowsApi;
|
||||
use komorebi::winevent_listener;
|
||||
use komorebi::CUSTOM_FFM;
|
||||
use komorebi::DATA_DIR;
|
||||
use komorebi::HOME_DIR;
|
||||
use komorebi::INITIAL_CONFIGURATION_LOADED;
|
||||
use komorebi::SESSION_ID;
|
||||
@@ -199,6 +200,8 @@ fn main() -> Result<()> {
|
||||
Option::from,
|
||||
);
|
||||
|
||||
std::fs::create_dir_all(&*DATA_DIR)?;
|
||||
|
||||
let wm = if let Some(config) = &static_config {
|
||||
tracing::info!(
|
||||
"creating window manager from static configuration file: {}",
|
||||
|
||||
Reference in New Issue
Block a user