Skip to content

Commit

Permalink
Fix dmenu password patch check
Browse files Browse the repository at this point in the history
  • Loading branch information
BachoSeven authored and firecat53 committed Dec 9, 2021
1 parent 30a219e commit da15351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion networkmanager_dmenu
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def dmenu_cmd(num_lines, prompt="Networks", active_lines=None): # pylint: disab
obscure_color = CONF.get('dmenu_passphrase', 'obscure_color', fallback='#222222')
try:
# Check for dmenu password patch
dm_patch = b'bfivP' in sprun(["dmenu", "-h"], check=False, capture_output=True).stderr
dm_patch = b'P' in sprun(["dmenu", "-h"], check=False, capture_output=True).stderr
except FileNotFoundError:
dm_patch = False
dmenu = ["-P"] if dm_patch else ["-nb", obscure_color, "-nf", obscure_color]
Expand Down

0 comments on commit da15351

Please sign in to comment.