Re: [Zim-wiki] Win32: popup cmd windows; ditaa plugin; toolbar icons
On Thu, Oct 25, 2012 at 8:28 PM, klo uo 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
Re: [Zim-wiki] 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 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? ___ 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
Re: [Zim-wiki] Win32: popup cmd windows; ditaa plugin; toolbar icons
OK, thanks for confirmation My main concern is 1st question, but then I guess I'll have to reconsider downloading source package ditaa was something I discovered through Zim, and thought to try it, maybe could be handy. Could use it as custom tool, but Zim integrated latex (miktex) and graphviz in so clever way, that I wanted this plugin to work the same too ^_^ Thanks for considering Windows platform, as no many FOSS projects do it right, for whatever reasons I discovered Zim on Ubuntu, and was pleased to see Windows version which I enjoy using it Best wishes, klo ___ 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
Re: [Zim-wiki] Win32: popup cmd windows; ditaa plugin; toolbar icons
On Sun, Oct 21, 2012 at 11:22 PM, klo uo wrote: > Hi, > > I use latest portable version on Windows XP and would appreciate if I could > get help on some of my questions: > > 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? > > 2. I have ditaa plugin, and made it available system wide by making batch > file in Windows root folder "java -jar ditaa.jar %*". Executing "ditaa" on > command line from any folder is without problem, but for some reason Zim > can't find the command available. Again it looks from above like > "zim.applications.Application" module is responsible for finding it. > > 3. This is just cosmetic question, as I couldn't find icon resources used on > toolbar and in menu bar. They aren't available as PNG files (except couple > of them in pixmap folder) and I can't find which DLL holds icon resources? Afraid the question to all 3 is that these are in the source package. Can't really do trouble shooting using a compiled version. For the ditaa command, make sure your PATH environment includes to folder that has the ditaa command. Also be aware that zim is sensitive to the extension of the file, so bat file may not work as an alias. 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