Skip to content

Commit

Permalink
fix(module/shell): expand user directory in command spec
Browse files Browse the repository at this point in the history
Make sure that ~/ is expanded to the user's home directory in the
command specified for the shell module.

fixes #1002
  • Loading branch information
tobi-wan-kenobi committed Oct 26, 2023
1 parent c4a3f48 commit 05622f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bumblebee_status/modules/contrib/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self, config, theme):
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:
Expand Down

0 comments on commit 05622f9

Please sign in to comment.