Bug 387324

Summary: The batchmode flag doesn't work
Product: [Applications] krita Reporter: wolthera <griffinvalley>
Component: ScriptingAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description wolthera 2017-11-26 19:01:16 UTC
Make a python script that does this:

1. Get all open documents
2. Turn on batchmode
3. Export each document as a png, or something.

4. then, open a few documents and run script. Observe regardless of batchmode, you will get the export config windows.

For the comic project management docker and eliakins scripts, we use node->save() on the root layer, which does seem to work...

This is since the async saving branch merge.
Comment 1 Halla Rempt 2018-02-08 15:37:56 UTC
Tested with

from krita import *
d = Krita.instance().activeDocument()
d.setBatchmode(True)
d.saveAs("/home/boud/test.png")

This no longer pops up a config window.