aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 1 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 42dade6..dc3ddb7 100644
--- a/Makefile
+++ b/Makefile
@@ -265,17 +265,7 @@ check-now-system:
# WSL2 fix: ensure /run/user/UID exists for systemd --user
fix-wsl:
- @RUNTIME_DIR="/run/user/$(id - u)"; \
- if [ ! -d "$$RUNTIME_DIR" ]; then \
- echo "WSL2: Creating missing $$RUNTIME_DIR..."; \
- sudo mkdir -p "$$RUNTIME_DIR" && \
- sudo chmod 700 "$$RUNTIME_DIR" && \
- sudo chown "$(id -un):$(id -gn)" "$$RUNTIME_DIR"; \
- sudo systemctl start "user@$(id - u).service" 2>/dev/null || true; \
- export XDG_RUNTIME_DIR="$$RUNTIME_DIR"; \
- export DBUS_SESSION_BUS_ADDRESS="unix:path=$${RUNTIME_DIR}/bus"; \
- (sleep 2 && systemctl --user daemon-reexec) 2>/dev/null || true; \
- fi
+ @./wsl-fix.sh
status: fix-wsl
@echo "=== User Timer Status ==="