On Thu, Oct 25, 2012 at 8:28 PM, klo uo <klo...@gmail.com> 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

_______________________________________________
Mailing list: https://launchpad.net/~zim-wiki
Post to     : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp

Reply via email to