diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index d1ac484..1102067 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -1188,6 +1188,11 @@ class KCCGUI(KCC_ui.Ui_KCC): self.addMessage('Since you are new user of KCC please see few ' 'important tips.', 'info') + if not sys.platform.startswith('win'): + try: + os.chmod('/usr/local/bin/kindlegen', 0o755) + except Exception: + pass kindleGenExitCode = Popen('kindlegen -locale en', stdout=PIPE, stderr=STDOUT, shell=True) if kindleGenExitCode.wait() == 0: self.KindleGen = True