Yes, I modified startup, now there is 10s delay before starting gbr2. And everything works. Maybe I should write function to check if desktop panel is started or not.
BTW. Does anyone know why sleep 10 && gbr2 ... doesn't work? It works in terminal, but in System --> Preferences --> Startup Applications, it doesn't. I had to do this via script to make it work. Is this some linux restriction or bug in Ubuntu? Jussi 2010/8/23 Benoît Minisini <gam...@users.sourceforge.net>: >> Hi! >> TrayIcon seems to work perfectly, >> until program that uses it, is started at startup of OS. >> Program is started with following command; >> gbr2 /home/MyName/ProgramsName.gambas >> >> >> Program has following code: >> >> PUBLIC Kuvake AS NEW TrayIcon AS "TrayIkoni" >> >> PUBLIC SUB Form_Open() >> >> Kuvake.Picture = Picture.Load("ikoni.png") >> Kuvake.Show() >> >> .... >> >> >> Following problems: >> With GTK+, trayicon never appears, everything else works fine. >> With Qt, error message at startup: >> " >> This application has raised an unexpected error and must abort. >> Embedding has failed. >> FMain.?.0 >> " >> >> Gambas 2.21 revision 3124 @ Ubuntu 10.04 64bit >> >> Jussi >> > > The TrayIcon must be embedded in a System tray to work. The system tray is > (usually) managed by the desktop panel, so maybe your desktop panel is not yet > visible when your program is run? > > -- > Benoît Minisini > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user