Rename config option for issue #565

This commit is contained in:
boltgolt 2021-09-03 22:21:49 +02:00
parent 692d674619
commit 67b1c95f99
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26
2 changed files with 10 additions and 3 deletions

View file

@ -81,7 +81,14 @@ if not os.path.exists("/tmp/howdy_picked_device"):
if key == "capture_failed" or key == "capture_successful": if key == "capture_failed" or key == "capture_successful":
if value == "true": if value == "true":
print("NOTICE: Howdy login image captures have been disabled by default, change the config to enable them again") print("NOTICE: Howdy login image captures have been disabled by default, change the config to enable them again")
continue value = "false"
# MIGRATION 2.6.1 -> 3.0.0
# Rename config options so they don't do the opposite of what is commonly expected
if key == "ignore_ssh":
key = "abort_if_ssh"
if key == "ignore_closed_lid":
key = "abort_if_lid_closed"
try: try:
newConf.set(section, key, value) newConf.set(section, key, value)

View file

@ -16,10 +16,10 @@ no_confirmation = false
suppress_unknown = false suppress_unknown = false
# Disable Howdy in remote shells # Disable Howdy in remote shells
ignore_ssh = true abort_if_ssh = true
# Disable Howdy if lid is closed # Disable Howdy if lid is closed
ignore_closed_lid = true abort_if_lid_closed = true
# Disable howdy in the PAM # Disable howdy in the PAM
# The howdy command will still function # The howdy command will still function