<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    I'm trying to give a user access rights to X with xhost command.<br>
    I've created a script named '/usr/bin/boincxhost' (chmod 555) like
    this:<br>
    <br>
    <i>#!/bin/sh</i><i><br>
    </i><i>xhost +SI:localuser:boinc &amp;&gt; /dev/null</i><i><br>
    </i><i>exit 0</i><br>
    <br>
    If I run it from command line it works fine.<br>
    But I want to run from a systemd unit at startup. So I added this
    line to the unit file:<br>
    <br>
    <i>ExecStartPre=/usr/bin/boincxhost</i><br>
    <br>
    The service starts without errors, but I cannot find the user to
    have rights for accessing X. Maybe someone can tell me where I'm
    wrong in the procedure? Or is there any other way to give that user
    access to X? I already tried to add the user to the 'video' group,
    but Boinc refuse to see the GPU available.<br>
    Thanks for any hint.<br>
    <br>
    Mattia<br>
  </body>
</html>