• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFUserNotificationCreate does not work from daemon started via launchd
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFUserNotificationCreate does not work from daemon started via launchd


  • Subject: Re: CFUserNotificationCreate does not work from daemon started via launchd
  • From: Andrei Tchijov <email@hidden>
  • Date: Tue, 8 Nov 2005 16:22:06 -0500

Douglas,
You are right (I guess it was expected). When I wrote small test program - it works. Both from ssh session and launched by launchd.
Sorry for bothering you. I guess I will need to do some more digging.
Andrei


On Nov 8, 2005, at 3:39 PM, Douglas Davidson wrote:


On Nov 7, 2005, at 2:46 PM, Andrei Tchijov wrote:

Little bit more details. Application in questions runs as a part of shell script. Shell script gets started by launchd (and it runs as root) (...<key>UserName</key><string>root</string>...). Application itself runs as currently logged in user by means of "su - <user name> -c 'application command line'" . I am not sure if it is relevant, but if I ssh to localhost and then try to run the application in question, then it does not work as well. I looked into source code for CFUserNotificationCreate and it is trying to get some sort of SessionID ( "kCFUserNotificationSessionIDKey" ) from the dictionary. Is it the same thing as "SECURITYSESSIONID" environment var? Is it important? But then on other side, if I "su - root", I endup with env which does not have SECURITYSESSIONID in it, but my application still works.


User notification should work perfectly well from an ssh session. Can you post a small example program that is not working for you? Also, the SessionID is not anything you should need to deal with; it should not be relevant at all for this.


Douglas Davidson


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >CFUserNotificationCreate does not work from daemon started via launchd (From: Andrei Tchijov <email@hidden>)
 >Re: CFUserNotificationCreate does not work from daemon started via launchd (From: Douglas Davidson <email@hidden>)
 >Re: CFUserNotificationCreate does not work from daemon started via launchd (From: Andrei Tchijov <email@hidden>)
 >Re: CFUserNotificationCreate does not work from daemon started via launchd (From: Douglas Davidson <email@hidden>)

  • Prev by Date: How does Cocoa identify itself to a web server?
  • Next by Date: AppKit source code should be public when...
  • Previous by thread: Re: CFUserNotificationCreate does not work from daemon started via launchd
  • Next by thread: Core Data
  • Index(es):
    • Date
    • Thread