about summary refs log tree commit diff
path: root/pkgs/dwm/dwm-autostart.diff
blob: 190fd2dafff21091fffb96f5dc433fa2156d3b31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/dwm.c b/dwm.c
index 127ab8a..8b2478a 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1773,6 +1773,8 @@ run(void)
 void
 runAutostart(void) {
 	system("killall -q dwmblocks; dwmblocks &");
+	system("for app in `ls ~/.config/autostart/*.desktop`; do $(grep '^Exec' $app | sed 's/^Exec=//') &; done");
 }

 void