Quote:
Originally Posted by dima_tr
@Mackx and others: I know how to send startup signal to ipc. A new tab appears, that's fine. BUT, when I go back to the main file browser and try to start the app once again I get a complain "app is running, please close it first and then start again", smth like this. When I have no registration to ipc then "Back to SD card, launch app" works fine, the system just gives me the current running app instance. The question is how to create a unified DR800/DR1000 binary, so it does registering with ipc and it is possible to launch it again from file browser?
|
Hi dima_tr,
I have seen the problem with other programs, but did not look into it. I guess that the on_file_open (see helloworld/ipc.c) is called (again?) when you have called startup_completed with is_multidoc to TRUE. Looking at the comment in the file, returning the xid of the existing window indicates to sysd, that it should not create an extra tab, but show the existing one. I have not played with these function yet.
When you start experimenting, please keep us informed of the results, they should be interesting to more people.