<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[electron:837): Gtk-WARNING **: cannot open display: 0:]]></title><description><![CDATA[<p dir="auto">when run DISPLAY=0:0 npm start, i meet such error.</p>
<pre><code>root@raspberrypi:~/MagicMirror # DISPLAY=0:0 npm start

&gt; magicmirror@2.8.0 start /root/MagicMirror
&gt; sh run-start.sh


(electron:837): Gtk-WARNING **: cannot open display: 0:0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.8.0 start: `sh run-start.sh`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the magicmirror@2.8.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-08-01T14_29_27_057Z-debug.log
</code></pre>
<p dir="auto">I have update the raspi-config to start with command line and text boot.<br />
But error still here.<br />
Any one can help me???</p>
]]></description><link>https://forum.magicmirror.builders/topic/10883/electron-837-gtk-warning-cannot-open-display-0</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 11:34:37 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10883.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Aug 2019 14:37:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to electron:837): Gtk-WARNING **: cannot open display: 0: on Fri, 13 Sep 2019 09:08:51 GMT]]></title><description><![CDATA[<p dir="auto">I saw this just yesterday (followed by a few other warnings). Solution was to follow pretty much this ancient but still working how-to for jessie:<br />
<a href="https://github.com/MichMich/MagicMirror/wiki/jessie-lite-installation-guide" target="_blank" rel="noopener noreferrer nofollow ugc">jessie-lite-installation-guide</a><br />
(especially points describing “Install Xserver, LXDE-gui and lightdm” and missing packages)</p>
]]></description><link>https://forum.magicmirror.builders/post/61216</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61216</guid><dc:creator><![CDATA[Corben Dallas]]></dc:creator><pubDate>Fri, 13 Sep 2019 09:08:51 GMT</pubDate></item><item><title><![CDATA[Reply to electron:837): Gtk-WARNING **: cannot open display: 0: on Sun, 08 Sep 2019 13:20:11 GMT]]></title><description><![CDATA[<p dir="auto">I saw this error because the raspi was set to Autologin as “pi” and I had created another user which could not take control of the display.</p>
]]></description><link>https://forum.magicmirror.builders/post/61072</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/61072</guid><dc:creator><![CDATA[__willo__]]></dc:creator><pubDate>Sun, 08 Sep 2019 13:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to electron:837): Gtk-WARNING **: cannot open display: 0: on Fri, 02 Aug 2019 17:20:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yohu12" aria-label="Profile: yohu12">@<bdi>yohu12</bdi></a> this is the same as MagicMirror/installers/mm.sh</p>
<p dir="auto">Are u doing this over vpn?</p>
<p dir="auto">Also the operating system must have xwindows running…</p>
]]></description><link>https://forum.magicmirror.builders/post/59692</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/59692</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 02 Aug 2019 17:20:16 GMT</pubDate></item><item><title><![CDATA[Reply to electron:837): Gtk-WARNING **: cannot open display: 0: on Fri, 02 Aug 2019 17:11:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> said in <a href="/post/59640">electron:837): Gtk-WARNING **: cannot open display: 0:</a>:</p>
<blockquote>
<p dir="auto">export DISPLAY=:0</p>
</blockquote>
<p dir="auto">It return same error</p>
<pre><code>(electron:1493): Gtk-WARNING **: cannot open display: :0
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/59691</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/59691</guid><dc:creator><![CDATA[yohu12]]></dc:creator><pubDate>Fri, 02 Aug 2019 17:11:54 GMT</pubDate></item><item><title><![CDATA[Reply to electron:837): Gtk-WARNING **: cannot open display: 0: on Thu, 01 Aug 2019 16:04:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/yohu12" aria-label="Profile: yohu12">@<bdi>yohu12</bdi></a> do it in two steps</p>
<pre><code>export DISPLAY=:0
npm start
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/59640</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/59640</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 01 Aug 2019 16:04:30 GMT</pubDate></item><item><title><![CDATA[Reply to electron:837): Gtk-WARNING **: cannot open display: 0: on Thu, 01 Aug 2019 14:47:12 GMT]]></title><description><![CDATA[<p dir="auto">And I can run <code>startx</code> to show the desktop screen on the monitor. only npm start is not work.</p>
]]></description><link>https://forum.magicmirror.builders/post/59639</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/59639</guid><dc:creator><![CDATA[yohu12]]></dc:creator><pubDate>Thu, 01 Aug 2019 14:47:12 GMT</pubDate></item></channel></rss>