From 204310cdccbe3b5629614c43afc17edc80a183a4 Mon Sep 17 00:00:00 2001 From: Hanchai Nonprasart <85230240+HanchaiN@users.noreply.github.com> Date: Mon, 24 Aug 2026 13:44:05 +0700 Subject: [PATCH] Execute specific action on run --- dex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dex b/dex index 3af9c3a..893cf51 100755 --- a/dex +++ b/dex @@ -547,8 +547,11 @@ class Application(DesktopEntry): return path = self.Path + executable = self.Exec + if action: + executable = Action(owner=self, identifier=action).Exec cmd = self._build_cmd( - exec_string=self.Exec, needs_terminal=self.Terminal, term=term + exec_string=executable, needs_terminal=self.Terminal, term=term ) if not cmd: raise ApplicationExecException("Failed to build command string.")