diff --git a/src/fenrir/commands/commands/00_init_commands.py b/src/fenrir/commands/commands/00_init_commands.py index 6ab81bb1..4a573ca0 100644 --- a/src/fenrir/commands/commands/00_init_commands.py +++ b/src/fenrir/commands/commands/00_init_commands.py @@ -15,7 +15,7 @@ class command(): def initialize(self, environment): self.env = environment # clipboard - self.env['runtime']['memoryManager'].addIndexList(self, 'clipboardHistory', self.env['runtime']['settingsManager'].getSettingAsInt('general', 'numberOfClipboards')) + self.env['runtime']['memoryManager'].addIndexList('clipboardHistory', self.env['runtime']['settingsManager'].getSettingAsInt('general', 'numberOfClipboards')) def shutdown(self): pass def getDescription(self): diff --git a/src/fenrir/commands/commands/export_clipboard_to_file.py b/src/fenrir/commands/commands/export_clipboard_to_file.py index 914de532..0e1078ac 100644 --- a/src/fenrir/commands/commands/export_clipboard_to_file.py +++ b/src/fenrir/commands/commands/export_clipboard_to_file.py @@ -28,10 +28,10 @@ class command(): self.env['runtime']['outputManager'].presentText(_('clipboard empty'), interrupt=True) return clipboard = self.env['runtime']['memoryManager'].getIndexListElement('clipboardHistory') - clipboardFile.write(clipboard) - clipboardFile.close() - os.chmod(clipboardFilePath, 0o666) - self.env['runtime']['outputManager'].presentText(_('clipboard exported to file'), interrupt=True) + clipboardFile.write(clipboard) + clipboardFile.close() + os.chmod(clipboardFilePath, 0o666) + self.env['runtime']['outputManager'].presentText(_('clipboard exported to file'), interrupt=True) except Exception as e: self.env['runtime']['debug'].writeDebugOut('export_clipboard_to_file:run: Filepath:'+ clipboardFile +' trace:' + str(e),debug.debugLevel.ERROR)