Browse Source

disable progress bars on mac again

Nick Sweeting 4 years ago
parent
commit
9d24bfd0dc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      archivebox/config.py

+ 2 - 1
archivebox/config.py

@@ -27,6 +27,7 @@ import re
 import sys
 import sys
 import json
 import json
 import getpass
 import getpass
+import platform
 import shutil
 import shutil
 import django
 import django
 
 
@@ -51,7 +52,7 @@ CONFIG_SCHEMA: Dict[str, ConfigDefaultDict] = {
     'SHELL_CONFIG': {
     'SHELL_CONFIG': {
         'IS_TTY':                   {'type': bool,  'default': lambda _: sys.stdout.isatty()},
         'IS_TTY':                   {'type': bool,  'default': lambda _: sys.stdout.isatty()},
         'USE_COLOR':                {'type': bool,  'default': lambda c: c['IS_TTY']},
         'USE_COLOR':                {'type': bool,  'default': lambda c: c['IS_TTY']},
-        'SHOW_PROGRESS':            {'type': bool,  'default': lambda c: c['IS_TTY']},
+        'SHOW_PROGRESS':            {'type': bool,  'default': lambda c: (c['IS_TTY'] and platform.system() != 'Darwin')},  # progress bars are buggy on mac, disable for now
         'IN_DOCKER':                {'type': bool,  'default': False},
         'IN_DOCKER':                {'type': bool,  'default': False},
         # TODO: 'SHOW_HINTS':       {'type:  bool,  'default': True},
         # TODO: 'SHOW_HINTS':       {'type:  bool,  'default': True},
     },
     },