Thread: [gtk+osx] GTK and nessus?
Status: Beta
Brought to you by:
jralls
From: Hermann S. <in...@ze...> - 2004-07-13 12:44:18
|
hi just installed gtk-osx-0.7-binary and tried to compile the devel nessus 2.1. It works (no errors) but starting the client then doesn't really work: /usr/local/bin/nessus ** WARNING **: gdk_drag_init: not implemented gtk_init GTKMacSetup() ** WARNING **: gdk_font_load: CALLED with -adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-* Found font: helvetica, 12 pt (id: 21) ** WARNING **: gdk_atom_intern: unimplemented (warned once) ** WARNING **: gdk_window_set_cursor: not implemented! (only warned once) ** WARNING **: gdk_color_parse: None color gotten ** WARNING **: gdk_color_parse: None color gotten ** WARNING **: gdk_color_parse: None color gotten ** WARNING **: gdk_cursor_new: not implemented! ** WARNING **: gdk_cursor_new: not implemented! ** WARNING **: gdk_cursor_new: not implemented! ** WARNING **: gdk_cursor_new: not implemented! ** WARNING **: gdk_window_shape_combine_mask: not implemented! ** WARNING **: gdk_window_shape_combine_mask: not implemented! ** WARNING **: gdk_gc_set_clip_mask: no yet implemented on MacOS detail: button detail: button detail: button detail: button detail: button detail: button detail: button detail: button detail: button detail: button detail: button detail: button I then see the client window (seems to be complete) but cannot select the window. It is either frozen or something else isn't working as it should.. any hints? ideas? the process I see: PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE 20651 nessus 0.0% 0:00.62 1 54 327 1.37M 14.9M 6.03M 235M 20651 p4 S+ 0:00.62 /usr/local/bin/nessus greets Hermann |
From: David B. <va...@nt...> - 2004-07-18 12:57:01
|
Hermann Schaefer wrote: > I then see the client window (seems to be complete) but cannot select > the window. It is either frozen or something else isn't working as it > should.. any hints? ideas? It sounds like the classic command line problem. Command line programmes do not interact with OSX GUI workings, hopefully someone will fill in the proper detail here. What you need to do is to wrap the program in an app bundle, this will allow it to operate through OSX application launcher and allow you to interact with its GUI. Dave |
From: Dan C. <da...@da...> - 2004-07-18 14:27:07
Attachments:
smime.p7s
|
David Burnett wrote: > Hermann Schaefer wrote: > >> I then see the client window (seems to be complete) but cannot select >> the window. It is either frozen or something else isn't working as it >> should.. any hints? ideas? > > > It sounds like the classic command line problem. Command line > programmes do not interact with OSX GUI workings, hopefully someone > will fill in the proper detail here. > > What you need to do is to wrap the program in an app bundle, this > will allow it to operate through OSX application launcher and > allow you to interact with its GUI. There is a private, undocumented function called CPSEnableForegroundOperation() that SDL uses to enable this functionality. The relevant file in SDL is: http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/src/main/macosx/SDLMain.m?rev=1.11&content-type=text/x-cvsweb-markup In particular, the latest changes to that file are relevant: http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/src/main/macosx/SDLMain.m.diff?r1=1.10&r2=1.11 I have myself adapted these changes for MPlayer; it works quite well. - Dan Christiansen |
From: Hermann S. <pos...@ze...> - 2004-07-18 20:43:12
|
Am 18.07.2004 um 14:56 schrieb David Burnett: > What you need to do is to wrap the program in an app bundle, this > will allow it to operate through OSX application launcher and > allow you to interact with its GUI. Is there a howto somewhere? My knowledge of programming stopped with 6502 assembler and USDC PASCAL... |
From: Andy P. <en...@li...> - 2004-07-20 15:35:39
|
Hermann Schaefer wrote: > > Am 18.07.2004 um 14:56 schrieb David Burnett: > >> What you need to do is to wrap the program in an app bundle, this >> will allow it to operate through OSX application launcher and >> allow you to interact with its GUI. > > > Is there a howto somewhere? My knowledge of programming stopped with=20 > 6502 assembler and USDC PASCAL... Hermann Schaefer wrote: > > Am 18.07.2004 um 14:56 schrieb David Burnett: > >> What you need to do is to wrap the program in an app bundle, this >> will allow it to operate through OSX application launcher and >> allow you to interact with its GUI. > > > Is there a howto somewhere? My knowledge of programming stopped with > 6502 assembler and USDC PASCAL... There is some preliminary documentation on how to build a .app bundle on=20 our wiki. http://cinepaint.bigasterisk.com/BuildingGTKApplications Another alternative to moving to the .app structure, or the undocumented=20 function calls, is to create a "dummy" resource fork for your=20 executables and plugins, once they've been built and installed. This is=20 similar to what the FLTK project has done (http://www.fltk.org). 1) Create or find a simple .r file, (fltk has a good generic one for=20 it's mac projects, [it's just a text file]) Here's the contents of the fltk mac.r file: data 'MBAR' (128) { $"0001 0080" /* ...=C3=84 */ }; data 'MENU' (128, "Apple") { $"0080 0000 0000 0000 0000 FFFF FFFB 0114" /*=20 .=C3=84........=CB=87=CB=87=CB=87=CB=9A.. */ $"0A41 626F 7574 2046 4C54 4B00 0000 0001" /* =C2=ACAbout=20 FLTK..... */ $"2D00 0000 0000" /* -..... */ }; data 'carb' (0) { }; 2) run Rez on all the executable binaries that use UI (this can include=20 plugins) /Developer/Tools/Rez -t APPL -o YOUR_BINARY mac.r Additional Information: Bundles http://developer.apple.com/documentation/MacOSX/Conceptual/SystemOverview= /index.html?http://developer.apple.com/documentation/MacOSX/Conceptual/Sy= stemOverview/AppPackaging/chapter_5_section_1.html#//apple_ref/doc/uid/20= 000983 Resource Forks http://developer.apple.com/documentation/mac/MoreToolbox/MoreToolbox-11.h= tml Rez man Rez -Andy |