Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6719123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:03:19+00:00 2026-05-26T09:03:19+00:00

I have a daemon process, set up using launchd on Mac. The daemon is

  • 0

I have a daemon process, set up using launchd on Mac. The daemon is running as root. The following line does not launch my UI application –

system("launchctl start com.project.myproj");

But if I go to the terminal and run the same command -> launchctl start com.project.myproj. It launches my application. My question is am i doing something wrong or is system not behaving correctly ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T09:03:19+00:00Added an answer on May 26, 2026 at 9:03 am

    The problem is that launch daemons started by the system don’t have access to Aqua, so your daemon process can’t access the desktop environment.

    Apple’s Technical Note TN2083: Daemons and Agents describes some of this. (See this section on launchd agents.)

    Someone asked a similar question about accessing the Aqua environment from an SSH connection.

    I’m guessing you need to re-architect your application a bit:

    1. Create a launch agent that runs in every user’s Aqua session.
    2. Have the agent connect to your root daemon, or have the root daemon look for an instance of the launch agent.
    3. When signaled by the root daemon, have the launch agent launch the graphical part of the application.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I have a Distributed-objects-based IPC between a mac application and a launchd daemon
I'd like to have a small (not doing too damn much) daemon running on
I have a process that is running as a java daemon on Ubuntu Linux.
Using Jakarta Commons Daemon is it possible to have my Java application perform an
I have decided to move my C# daemon application (using dotConnect as ADO.NET provider)
I have a Python server which is not running as root, which fronts an
I have a daemon that forks the process. This daemon access a database using
I have a process x which uses system C function to start ntpd daemon.
I have a daemon app written in C and is currently running with no
So I have a daemon running on a Linux system, and I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.