27 February 2013

Zenity 3.6.0 Portable

In Windows we can use WSH to interact with console/batch processing task, or for simple case "net send" or "msg" will suffice. Then I found zenity, a modern version of cdialog which curses based.

This tool use GTK as its gui to bridge console I/O with modern dialog window for many purpose. Its template (glade ui) can be customized too. I found it a good match for bash though I haven't try it with batch cmd (I dont see a reason why it won't work).

notes:
- consequently as this is static build, no locales/translation included (English only), but it's possible to add
- zenity.ui is embedded in the executable, to override it put zenity.ui alongside zenity.exe (see source for zenity.ui file)
- icons are different from original version as I force it to be stocked

Edit:
Hmm I think, I have an example...
"runas" which allow to do "UAC" ala commandline usually assume you know the username of the admin account (as it don't ask you), making it uninteractive. With zenity we could do something like this:

9 comments:

Thanks for making a port of Zenity to Windows with newer version.2 issues I have seen so far: 1. Fonts are very blur. 2. When I try to resize one category name: (zenity.exe:3760): Gdk-CRITICAL **: gdk_device_get_source: assertion `GDK_IS_DEVICE (device)' failed

Thanks for quick reply.Before I used zenity from here: http://www.placella.com/software/zenity/with SET ZENITY_DATADIR=C:\zenity\share\Do you have a build as not single executable file or can I compile it as not single executable?For the GTK error, is there an option that I can hide the specific error instead of all errors?

No need to set environment and no need to rebuild, I just saying if you add another file then it doesn't count as single standalone exe :). Doesn't mean you have to recompile. All settings can be placed relative to where the exe reside. Simple ;)

Do you plan to continue the project in the future? That's because I would like to know if I can use zenity for a cross-platform project. Incidentally, your porting works perfectly in a xubuntu Linux box with wine.Thank you!