Re: Launching a GUI using execl()
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:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:subject :mime-version:date:references:x-mailer; bh=2qYbP1PWbC/jPzpttDJb7lrXPzeoLszXjvx+WSp7oK0=; b=jhNocodM6KOIgxflsO1gmtj3FacaqTPfH/8tnLdrspUe8HocWTSq5PxJKhhWfuaafs 8CjvNBNu4B3LzrZrCsyHJb4PLjh3ZLDGOHVnjlTGKgWc5B9R6ODZ0wv66Vo7rOazXQyK W1iaWYHlAmBk/km7TzQ5DeDvP/gAch6Z8Ijqo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:subject:mime-version:date:references :x-mailer; b=BGwPNuNuiXGiv/PvwpbTe3cnqp+hq4q7/RP1N0jFNCLpCgSCELXw2Tas5Q9ahniC8T T7cDGF3YqGGsgKhrxPlql3kyteyJr2Bp6GY+kpyqqvHhGGDX9iBEM7NzUb3Ym8QQSRj9 +QBSvgRv3knAhn3/aMIgaIn4uOQ+rS9BDFCEI= On Feb 24, 2009, at 2:07 PM, Rakesh Singhal wrote: 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: 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. I swear we've answered your question before. 2. Which user should see the UI if multiple users are logged in? _______________________________________________ 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... 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. Please advice. Simply put, you can't reliably launch a GUI application directly from a system-level daemon (that is, a daemon that was launched from / Library/LaunchDaemon/). 1. How do you know a user is logged in to interact with your UI? Or are you just going to put up windows and menus over the Login dialog [and your app winds up running as the root user, which is a bad thing(tm)]? 3. You need to launch your app from within the the user's session. Ie, from, say a tool launched from /Library/LaunchAgents/ (there are other methods to get the tool launched in the user's session on earlier OS's). Google is your friend. This email sent to site_archiver@lists.apple.com
participants (1)
-
Eli Bach