I'm using a build that is about one month old, but I don't think that this is the problem. I will update in the next few days and then I will see if this goes away.
OK. I have written this small tool which you can download at http://sourceforge.net/projects/launchmen. The Linux port uses a normal fork() and then executes the specifed application when the entry is selected from the menu. It works for every application but only with wine/Agent I have to select the entry twice to make it run.
When I select the entry wich should run wine with Agent nothing happens. When I look into the process list the first time I can see this:
1506 ? S 0:00 /usr/local/bin/wine /home/user/wine/D/home/agent/agent.exe 1507 ? S 0:00 _ wineserver 1508 ? S 0:00 _ wineserver
Which is strange because I have two wineservers running. When I launch exactly the same commandline from the shell everything is normal. I see one Agent, one wineserver and Agent comes up fine. In the case of my application I can see the above list and Agent doesn't start. Only when I launch Agent a second time from my app then it starts fine. When I exit Agent then and look again I can still see the old Agent hanging, but as long as this one is there my app can launch Agent normally. When I kill this Agent and wineserver the same happens again and I have to start it twice.
Any ideas what this could be? Since I only have this problem with wine I thought I ask if somebody could say something about this.