pass_typer: Avoid error when no password is selected
This commit is contained in:
parent
afd922caa1
commit
d64e59ec9b
@ -53,6 +53,7 @@ def select_and_type(server_name: Path) -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
selected = rofi_select(file_list)
|
selected = rofi_select(file_list)
|
||||||
|
if selected:
|
||||||
password = get_password(selected)
|
password = get_password(selected)
|
||||||
|
|
||||||
subprocess.run(["xdotool", "type", password + "\n"])
|
subprocess.run(["xdotool", "type", password + "\n"])
|
||||||
|
Loading…
Reference in New Issue
Block a user