Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, January 2007
building gnupg2-pinentry on osx; lack of 'focus' & weird "invalid option" bundle error


Message 1 in thread

i'm building gnupg2's pinentry-qt on OSX w/ qt-mac-free-3.3.7.

once built, on exec of the binary @ shell,

	% /usr/local/bin/pinentry-qt
		OK Your orders please
	SETDESC This is a test
		OK
	GETPIN

a Qt dialog correctly pops-up, but without mouse/keyboard focus.  i
can't enter a pin in the text field, and the button click, but do
nothing.

googling, this seems to be a known issue -- and a FAQ,

	http://lists.trolltech.com/qt-interest/2006-05/thread00383-0.html
		When compiled with the X11 version of qt under MacOS it behaves
correctly, but when compiled under qt-mac it has the problems
described at ...
	http://lists.trolltech.com/qt-interest/2003-03/thread00690-0.html
		This is a FAQ. Native Mac apps must have an application bundle in
order to get a GUI event thread. There are some notes about this in
the documentation and the Qt examples build bundles on Mac.

the resolution -- to build a 'bundle' -- is documented at,

	http://doc.trolltech.com/qq/qq09-mac-deployment.html

following those instructions,

if @ shell, i,

	% /usr/local/bin/pinentry-qt.app/Contents/MacOS/pinentry-qt
		OK Your orders please
	SETDESC This is a test
		OK
	GETPIN

this pops up the focus-less Qt dialog. as expected, as this is simply
a copy of the orig built binary.


if, however, i either,

	% open /usr/local/bin/pinentry-qt.app

or dubl-click "pinentry-qt.app" in the Finder, nothing happens.

But in "Console", i see:

	pinentry-qt: invalid option -- p
	pinentry-qt: invalid option -- s
	pinentry-qt: invalid option -- n
	pinentry-qt: invalid option -- _
	pinentry-qt: invalid option -- 0
	pinentry-qt: invalid option -- _
	pinentry-qt: invalid option -- 3
	pinentry-qt: invalid option -- 1
	pinentry-qt: invalid option -- 9
	pinentry-qt: invalid option -- 8
	pinentry-qt: invalid option -- 1
	pinentry-qt: invalid option -- 5
	pinentry-qt: invalid option -- 6
	pinentry-qt: invalid option -- 9
	OK Your orders please

any suggestions as to what to do with/about this?

thanks!

--
 [ signature omitted ]