From 05622f985ae15d2814e336c75e9a1749a9ee00e3 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Thu, 26 Oct 2023 08:54:13 +0200 Subject: [PATCH] fix(module/shell): expand user directory in command spec Make sure that ~/ is expanded to the user's home directory in the command specified for the shell module. fixes #1002 --- bumblebee_status/modules/contrib/shell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bumblebee_status/modules/contrib/shell.py b/bumblebee_status/modules/contrib/shell.py index e8461b9..46352b2 100644 --- a/bumblebee_status/modules/contrib/shell.py +++ b/bumblebee_status/modules/contrib/shell.py @@ -41,6 +41,7 @@ class Module(core.module.Module): super().__init__(config, theme, core.widget.Widget(self.get_output)) self.__command = self.parameter("command", 'echo "no command configured"') + self.__command = os.path.expanduser(self.__command) self.__async = util.format.asbool(self.parameter("async")) if self.__async: