Skip to content

Commit

Permalink
chore: Fix subprocess shell parameter in CustomWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
amnweb committed Aug 18, 2024
1 parent 93e0903 commit 181a684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/widgets/yasb/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _exec_callback(self):
self._exec_data = None

if self._exec_cmd:
proc = subprocess.Popen(self._exec_cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, shell=False)
proc = subprocess.Popen(self._exec_cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, shell=True)
output = proc.stdout.read()
if self._exec_return_type == "json":
self._exec_data = json.loads(output)
Expand Down

0 comments on commit 181a684

Please sign in to comment.