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
QtWS25 Last Chance

QProcess doesn't start application when using LaunchDaemon on macOS

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 541 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 last edited by TheLaw
    #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.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by m.sue
      #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

      • Login

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