site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=sRMBC77dJ3jRmx7ft8207Wgpd3VDPf+KYIbLnqZZ3+0=; b=AST8SAWXTxCSxUq0voTCrRkXjGUhCtS9HLdB7cw7YaSM1kT6/h6qgQL+AF6tayh23Z geFZQEJabTIiyVUr58UG0a7oiL1WyItHUqA+edBVTufGX7PIn9y7MhoyME42uUPhA/KG iNyZSJIXS2D6W2xKpeJ4CnMEf03en5MkVtEls= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=qcT7BAHSJpwBUw+l3Wibc85naZibfDJJC2R7MyQ6ZllHrHdVNf9ZCb2V0YcQiT6FhT +pJVbXxLYRf3xbmLcip6ZxEbPeNfZDRUCWupvm/5FzQ0OGe1rBBo4eAAFLmm55ZneiAn G89C9av76juo+2seNUOSIWXIQMl+hReJb0sBo= Hi all, I am launching a GUI app from daemon app as following: pid_t Pid = 0; Pid = fork(); setsid(); if (Pid == -1) { printf("fork err(%d)-%s\n", errno, strerror(errno)); return false; } else if(Pid == 0) { retValue = execl(GUI_PATH, GUI_PATH, PortNumber, (char*)0); if(retValue == -1) { printf("execl err(%d)-%s\n", errno, strerror(errno)); return false; } } When I execute this code, it launches the GUI every time but sometimes properly and sometimes not properly. Not properly means here, when it launches I face following issues: 1. I can not go to GUI using command + tab, cause it does not show there. 2. When it launches, it does not show on front of all applications. 3. I can not quit it using command + q, if I try command + q, it terminates other GUI application which is also running on system. I can use mouse to click on red cross to close it or from activity monitor, I can quit it. I do not faces these issues when it launches it properly. I can not use launch services APIs cause LaunchServices framework is not daemon safe. Please advice. Regards rksinghal _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rakesh Singhal