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
This commit is contained in:
parent
c4a3f488aa
commit
05622f985a
1 changed files with 1 additions and 0 deletions
|
@ -41,6 +41,7 @@ class Module(core.module.Module):
|
||||||
super().__init__(config, theme, core.widget.Widget(self.get_output))
|
super().__init__(config, theme, core.widget.Widget(self.get_output))
|
||||||
|
|
||||||
self.__command = self.parameter("command", 'echo "no command configured"')
|
self.__command = self.parameter("command", 'echo "no command configured"')
|
||||||
|
self.__command = os.path.expanduser(self.__command)
|
||||||
self.__async = util.format.asbool(self.parameter("async"))
|
self.__async = util.format.asbool(self.parameter("async"))
|
||||||
|
|
||||||
if self.__async:
|
if self.__async:
|
||||||
|
|
Loading…
Reference in a new issue