zim-wiki team mailing list archive
-
zim-wiki team
-
Mailing list archive
-
Message #01961
Re: Win32: popup cmd windows; ditaa plugin; toolbar icons
Changing line 156 in zim/applications.py:
========================================
p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'),
stderr=subprocess.PIPE)
========================================
to:
========================================
if os.name == 'nt':
# http://code.activestate.com/recipes/409002/
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'),
stderr=subprocess.PIPE, startupinfo=startupinfo)
else:
p = subprocess.Popen(argv, cwd=cwd, stdout=open(os.devnull, 'w'),
stderr=subprocess.PIPE)
========================================
stops popup windows, and works great. As it should ;)
On Sun, Oct 21, 2012 at 11:22 PM, klo uo <klonuo@xxxxxxxxx> wrote:
> 1. plugin commands (insert equation, insert dot graph, etc) open popup cmd
> windows when executed which I think looks bad. I browsed plugin folder and
> it seems like plugins call "zim.applications.Application" module for command
> execution, but this module is unavailable for user tweaks. I know that I can
> download Zim source, but then I have to install all dependencies which makes
> the task undesired. So my question is, is there any way I can remedy popup
> cmd windows while executing plugins?
Follow ups
References