• 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: Douglas Davidson <email@hidden>
  • Date: Tue, 8 Nov 2005 12:39:53 -0800


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


  • Follow-Ups:
    • Re: CFUserNotificationCreate does not work from daemon started via launchd
      • From: Andrei Tchijov <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>)

  • Prev by Date: Re: Understanding [NSTextview setInsertionPointColor:]
  • Next by Date: Re: Using NSSocketPort, NSConnection, Distributed Objects, and threads...
  • Previous by thread: Re: CFUserNotificationCreate does not work from daemon started via launchd
  • Next by thread: Re: CFUserNotificationCreate does not work from daemon started via launchd
  • Index(es):
    • Date
    • Thread