title: How to open a qml interface using systemd?
body: <p>I want to open a qml interface using systemd and when the user closes the window, the system automatically restarts the process to open the window again, but the interface doesn't open.</p>
  <p>I tried this configuration:</p>
  <pre><code>[Unit]
  Description=test
  After=graphical.target
  Wants=graphical.target
  
  [Service]
  Type=simple
  ExecStart=~/test
  Restart=on-failure
  RestartSec=10
  KillMode=process
  
  [Install]
  WantedBy=multi-user.target
  Alias=test.Service
  </code></pre>
  <p>test is my binary, that runs my qml interface.</p>
  <p>How can I do this?</p>
  <p>Please if possible provide an example for my case.</p>