Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess doesn't start application when using LaunchDaemon on macOS
Forum Update on Monday, May 27th 2025

QProcess doesn't start application when using LaunchDaemon on macOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 544 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TheLaw
    wrote on 12 Jun 2017, 13:00 last edited by TheLaw 6 Dec 2017, 13:01
    #1

    Hello, I'm have trouble understanding why a QProcess doesn't start an executable when the application in which the qprocess runs is a LaunchDaemon on macOS. So I have a LaunchDaemon process which launches at boot and in that daemon a QProcess is called to start an application executable at something like /Applications/application_name/Contents/MacOS/application_name using setProgram() and start(), but that doesn't work on boot. If I just manually stop the daemon it relaunches itself because of "<key>KeepAlive</key><true/>" in its .plist file and then all of a sudden the qprocess does launch the application correctly. Any ideas why that happens and how I can fix it?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      m.sue
      wrote on 12 Jun 2017, 13:35 last edited by m.sue 6 Dec 2017, 13:39
      #2

      Hi,

      are you sure that you or better the user that runs your application can at all start something at that specific point of time during boot? Did you e.g. check it with simple non-gui- or gui-system routines as replacement?

      -Michael.

      1 Reply Last reply
      0

      1/2

      12 Jun 2017, 13:00

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved