← Back to team overview

zim-wiki team mailing list archive

Re: Win32: popup cmd windows; ditaa plugin; toolbar icons

 

On Thu, Oct 25, 2012 at 8:28 PM, klo uo <klonuo@xxxxxxxxx> wrote:
> 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 ;)

Thanks, will add that fix to the trunk.

Regards,

Jaap


References