Skip to content

Commit

Permalink
Run commands in interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ZappaBoy committed Nov 5, 2022
1 parent f5c5fbc commit 0a30a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dmenu_extended/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def unsatisfied_plugin_requirements(plugin):
"indicator_edit": "*", # Symbol to indicate an item will launch an editor
"indicator_alias": "", # Symbol to indicate an aliased command
"prompt": "Open:", # Prompt
"interactive_shell": False, # Run commands in interactive mode
"interactive_shell": False, # Run commands in an interactive shell session
}


Expand Down Expand Up @@ -752,7 +752,7 @@ def execute(self, command, fork=None):
print(command)

if self.prefs["interactive_shell"] is True:
shell = os.environ.get("SHELL", "/bin/bash")
shell = os.environ.get("SHELL", "/usr/bin/env bash")
command = shell + " -i -c " + " ".join(command)
return subprocess.call(command, shell=self.prefs["interactive_shell"])

Expand Down

0 comments on commit 0a30a44

Please sign in to comment.