<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Cannot find wayland-0 socket under non-root user</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-find-wayland-0-socket-under-non-root-user/m-p/1071843#M157441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="347020" data-username="pgentili@alma-automotive.it" href="https://community.nxp.com/people/pgentili@alma-automotive.it"&gt;Paolo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is no better way to solve it,&amp;nbsp; we will have to change it manually. See these 2 links, please!&lt;/P&gt;&lt;P&gt;1.&lt;A class="link-titled" href="https://lists.freedesktop.org/archives/wayland-devel/2013-January/006871.html" title="https://lists.freedesktop.org/archives/wayland-devel/2013-January/006871.html"&gt;Weston on RPi: running as non-root&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&lt;EM&gt;Non-root user doesn't have permission to connect to Wayland socket.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. &lt;A class="link-titled" href="https://jira.automotivelinux.org/browse/SPEC-546" title="https://jira.automotivelinux.org/browse/SPEC-546"&gt;[SPEC-546] Run weston with dedicated 'display' user and group - Automotive Linux&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It is also a kind of way to add user to display group.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above information is helpful to you!&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;B.R,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 03:59:45 GMT</pubDate>
    <dc:creator>weidong_sun</dc:creator>
    <dc:date>2020-05-27T03:59:45Z</dc:date>
    <item>
      <title>Cannot find wayland-0 socket under non-root user</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-find-wayland-0-socket-under-non-root-user/m-p/1071842#M157440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to launch a GUI application on my system (iMX8MM, Yocto Sumo) &lt;SPAN style="text-decoration: underline;"&gt;without root permissions&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I login with my non-root user I have this situation:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;XDG_RUNTIME_DIR = /run/user/1000&lt;/LI&gt;&lt;LI&gt;wayland-0 does not exists inside /run/user/1000&lt;/LI&gt;&lt;LI&gt;When I try to open any gui aplication I get:&amp;nbsp;failed to connect to Wayland display: No such file or directory&lt;BR /&gt;failed to create display: No such file or directory&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way I've found to make it work is to chmod /run/user/0 and /run/user/0/wayland-0 and then set XDG_RUNTIME_DIR to /run/user/0. The problem is that the wayland-0 under /run/user/0 is not created until a user login (or at least it seems like that) so I cannot write a systemd service to chmod the directory and the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it is supposed to work this way, what do you think? How should I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Paolo Gentili&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 07:41:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-find-wayland-0-socket-under-non-root-user/m-p/1071842#M157440</guid>
      <dc:creator>pgentili</dc:creator>
      <dc:date>2020-05-26T07:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find wayland-0 socket under non-root user</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-find-wayland-0-socket-under-non-root-user/m-p/1071843#M157441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="347020" data-username="pgentili@alma-automotive.it" href="https://community.nxp.com/people/pgentili@alma-automotive.it"&gt;Paolo&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There is no better way to solve it,&amp;nbsp; we will have to change it manually. See these 2 links, please!&lt;/P&gt;&lt;P&gt;1.&lt;A class="link-titled" href="https://lists.freedesktop.org/archives/wayland-devel/2013-January/006871.html" title="https://lists.freedesktop.org/archives/wayland-devel/2013-January/006871.html"&gt;Weston on RPi: running as non-root&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&lt;EM&gt;Non-root user doesn't have permission to connect to Wayland socket.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2. &lt;A class="link-titled" href="https://jira.automotivelinux.org/browse/SPEC-546" title="https://jira.automotivelinux.org/browse/SPEC-546"&gt;[SPEC-546] Run weston with dedicated 'display' user and group - Automotive Linux&lt;/A&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;It is also a kind of way to add user to display group.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above information is helpful to you!&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;P&gt;B.R,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 03:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-find-wayland-0-socket-under-non-root-user/m-p/1071843#M157441</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2020-05-27T03:59:45Z</dc:date>
    </item>
  </channel>
</rss>

