Rename config option for issue #565
This commit is contained in:
parent
692d674619
commit
67b1c95f99
2 changed files with 10 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue