aboutsummaryrefslogtreecommitdiffhomepage
path: root/firectl.py
diff options
context:
space:
mode:
Diffstat (limited to 'firectl.py')
-rw-r--r--firectl.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/firectl.py b/firectl.py
index 020efd4..2b5b87d 100644
--- a/firectl.py
+++ b/firectl.py
@@ -153,6 +153,10 @@ def status():
else:
disabled.append(p)
+ header, conf = get_config()
+ update_disabled = [p for p in conf if p not in enabled]
+ disabled = [p for p in disabled if p not in update_disabled]
+
click.echo("{:<2} firejail profiles are enabled".format(len(enabled)))
for p in sorted(enabled):
click.echo(" %s" % p)
@@ -163,11 +167,11 @@ def status():
for p in sorted(disabled):
click.echo(" %s" % p)
- header, conf = get_config()
- disabled = [p for p in conf if p not in enabled]
- if len(disabled) > 0:
+ if len(update_disabled) > 0:
click.secho("\n{} firejail profiles are disabled by updates"
- .format(len(disabled)), fg="red")
+ .format(len(update_disabled)), fg="red")
+ for p in sorted(update_disabled):
+ click.echo(" %s" % p)
click.echo("Please run: sudo firectl restore")