• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

electron:837): Gtk-WARNING **: cannot open display: 0:

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 4 Posters 2.2k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    yohu12
    last edited by Aug 1, 2019, 2:47 PM

    And I can run startx to show the desktop screen on the monitor. only npm start is not work.

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil @yohu12
      last edited by sdetweil Aug 1, 2019, 4:04 PM Aug 1, 2019, 3:04 PM

      @yohu12 do it in two steps

      export DISPLAY=:0
      npm start
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      Y 1 Reply Last reply Aug 2, 2019, 5:11 PM Reply Quote 0
      • Y Offline
        yohu12 @sdetweil
        last edited by Aug 2, 2019, 5:11 PM

        @sdetweil said in electron:837): Gtk-WARNING **: cannot open display: 0::

        export DISPLAY=:0

        It return same error

        (electron:1493): Gtk-WARNING **: cannot open display: :0
        
        S 1 Reply Last reply Aug 2, 2019, 5:20 PM Reply Quote 0
        • S Offline
          sdetweil @yohu12
          last edited by Aug 2, 2019, 5:20 PM

          @yohu12 this is the same as MagicMirror/installers/mm.sh

          Are u doing this over vpn?

          Also the operating system must have xwindows running…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • _ Offline
            __willo__
            last edited by Sep 8, 2019, 1:20 PM

            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.

            1 Reply Last reply Reply Quote 0
            • C Offline
              Corben Dallas
              last edited by Corben Dallas Sep 13, 2019, 9:08 AM Sep 13, 2019, 9:07 AM

              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:
              jessie-lite-installation-guide
              (especially points describing “Install Xserver, LXDE-gui and lightdm” and missing packages)

              Raspberry Pi 4
              Raspbian Buster
              MagicMirror² v2.8.0

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy