summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ec2475c..1f98801 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -53,6 +53,14 @@ fn main() -> Result<()> {
#[allow(clippy::cast_sign_loss)]
let mut wm = WM::new(&conn, screen_num as usize)?;
+
+ #[cfg(feature = "autostart")]
+ {
+ for to_start in config::AUTOSTART_SCRIPTS {
+ helpers::spawn(to_start[0], &to_start[1..]);
+ }
+ }
+
wm.event_loop()?;
Ok(())