From 6fb61bb9fc392d4c922ae1912f75b26c26ae1634 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sun, 24 Nov 2024 02:52:41 -0800 Subject: [PATCH] early return with nix current-system path --- selfrestart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfrestart.c b/selfrestart.c index 48ff54e..097d2ec 100644 --- a/selfrestart.c +++ b/selfrestart.c @@ -22,6 +22,8 @@ * @return char* the path of the current executable */ char *get_dwm_path(){ + return "/run/current-system/sw/bin/dwm"; + // https://en.wikibooks.org/wiki/C_Programming/POSIX_Reference/sys/stat.h#Member_types struct stat s; int r, length, rate = 42;