Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks, I am quite familiar with systemd. So, would it make sense to launch my gui app as a systemd service? Commented Aug 11, 2021 at 15:49
  • Probably yes. If it's an input device, it would make more sense to start the app via the X11 input extension, which doesn't need any root privileges (search for inputplug) Commented Aug 11, 2021 at 15:55
  • @DanielD. I beg to differ if only on principle. systemd places each service in its own session to ensure a clean execution environment for the service (see man 7 daemon). In addition it doesnot restrict execution privileges in any way. So starting a gui app as a "service would be the equivalent of daemonizing its execution, something you probably don't need/want to do, not to mention the execution privileges tacked on that "service". Commented Aug 11, 2021 at 16:16