From 79eb4385bd34e8ee06b35637f092ee45dc3e3706 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 14 Mar 2026 09:31:51 +0200 Subject: dfm: Add privilege escalation. Pressing 'Z' (default) will spawn a nested dfm by escalating privileges using the value of DFM_SU (default 'sudo'). Pressing 'Z' again inside of this escalated mode returns to the original dfm. --- config.h.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index f6fb6d4..23f4258 100644 --- a/config.h.in +++ b/config.h.in @@ -33,6 +33,13 @@ #define DFM_BOOKMARK_8 "" #define DFM_BOOKMARK_9 "" +// +// Default privilege escalation utiliy. +// This is used to become root in dfm (default 'Z'). +// Values: "sudo", "doas", "ssu", "su", "run0", etc +// +#define DFM_SU "sudo" + // // Default image viewer. // The command is executed as follows: -- cgit v1.2.3