You usually notice this error due to the lack of a menu bar and all kinds of window decoration after you unsuccessfully played with your Cinnamon settings or just suffered some kind of other error. If you then try to reset Cinnamon or to use any other command involving the desktop environment, you will get the

Unable to open X display

error. While its hard to find out what actually causes it, you can easily bypass it by purging and reinstalling Cinnamon - which is a painless process and leaves your personal Cinnamon configuration untouched. To do so, log in with another desktop environment or open a command line environment by pressing Ctrl + Alt + F1. Afterwards enter

sudo apt-get purge cinnamon && sudo apt-get install cinnamon

Don't forget to log out and in again to make the changes effective. To log out without panel, press Ctrl + Alt + Backspace.

Facebooktwittergoogle_plusredditlinkedinmail
Tagged on:             

3 thoughts on “‘Unable to open X display’ error on Cinnamon (Linux Mint)

  • October 30, 2012 at 8:20 pm
    Permalink

    Thanks this was really helpful

    Reply
  • August 5, 2014 at 2:36 pm
    Permalink

    Thanks dude, saved my bacon.

    Reply
  • May 10, 2015 at 5:32 pm
    Permalink

    Thanks mate. I spent 2 hours with other complex solution. Nothing worked out but your simple one

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *