Setting dmenu_command in the config file to something other than the base name for the supported executables (dmenu, rofi, etc...), such as /home/me/.local/bin/dmenu, will not show a prompt message, nor will the password obscuring feature work properly, because the string command[0] will not be a valid key for the commands/pass_prompts dictionaries.
This PR attempts to solve the issue by using the os.path.basename() function to retrieve the basename of command[0].
Setting
dmenu_command
in the config file to something other than the base name for the supported executables (dmenu, rofi, etc...), such as/home/me/.local/bin/dmenu
, will not show a prompt message, nor will the password obscuring feature work properly, because the stringcommand[0]
will not be a valid key for thecommands
/pass_prompts
dictionaries.This PR attempts to solve the issue by using the
os.path.basename()
function to retrieve the basename ofcommand[0]
.