diff options
| author | Jonas Maier <jonas@x77.dev> | 2026-05-14 15:21:01 +0200 |
|---|---|---|
| committer | Jonas Maier <jonas@x77.dev> | 2026-05-14 15:21:01 +0200 |
| commit | 7cb3e5fbf183c24a91c75c9afed85127ebf5123c (patch) | |
| tree | 55bb23c34ad981f0e4e8ea235c83dab6079ad793 /src/lib.rs | |
| parent | ff8707271d84b72e2ee4b3bae4b14e6e9316e773 (diff) | |
| download | pish-7cb3e5fbf183c24a91c75c9afed85127ebf5123c.tar.gz | |
correct handling of XDG dirs
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -467,6 +467,10 @@ fn exec_rc_file(se: Arc<Mutex<Session>>) { } pub fn event_loop() { + fs::create_dir_all(basedir::config_dir()).unwrap(); + fs::create_dir_all(basedir::data_dir()).unwrap(); + fs::create_dir_all(basedir::state_dir()).unwrap(); + history::setup(); ansi::setup(); @@ -476,9 +480,6 @@ pub fn event_loop() { let raw = ScopedRawMode::on_fd(fd); raw.enable(); - fs::create_dir_all(basedir::config_dir()).unwrap(); - fs::create_dir_all(basedir::data_dir()).unwrap(); - let se = Session { raw: Some(raw), line: LineBuf::new(), |
