aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahiel@protonmail.ch>2016-01-03 13:35:37 +0100
committerRahiel Kasim <rahiel@protonmail.ch>2016-01-03 13:35:37 +0100
commit3792a55568db3990124d69d41a248b336bacb269 (patch)
tree410e9e86135d88cdff2d51b327e47744b4ff6ea3
parent32616187121594e5758bc1188e9be9d3fcedecc7 (diff)
list update disabled profiles in status
-rw-r--r--firectl.py12
-rw-r--r--setup.py2
2 files changed, 10 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")
diff --git a/setup.py b/setup.py
index 45ad6fd..32a07af 100644
--- a/setup.py
+++ b/setup.py
@@ -24,6 +24,8 @@ setup(
author="Rahiel Kasim",
author_email="rahielkasim@gmail.com",
classifiers=[
+ # "Development Status :: 5 - Production/Stable",
+ # "Development Status :: 6 - Mature",
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",