Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7553783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:09:19+00:00 2026-05-30T11:09:19+00:00

I used to launch Git GUI within my Cygwin console without any problems, but

  • 0

I used to launch Git GUI within my Cygwin console without any problems, but since I updated Cygwin I’ve got the following error message:

$ git gui
Application initialization failed: no display name and no $DISPLAY environment variable
Error in startup script: invalid command name "tk_messageBox"
    while executing
"tk_messageBox  -icon error  -type ok  -title "git-gui: fatal error"  -message $err"
    invoked from within
"if {[catch {package require Tcl 8.4} err]
 || [catch {package require Tk  8.4} err]
} {
        catch {wm withdraw .}
        tk_messageBox \
                -icon error \
                -typ..."
    (file "/usr/lib/git-core/git-gui" line 34)

How can I solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:09:20+00:00Added an answer on May 30, 2026 at 11:09 am

    Cygwin’s gitk and Git GUI require X11. This means you need to install some of the Cygwin X11 packages and set them up to be able to open the GUI.

    This should get you up and running:

    1. Run the Cygwin installer again (download the relevant setup-*.exe again if you need to).
    2. At the package list, select to install "xinit" under the X11 category. Click next, accept all the dependencies, and install.
    3. In the Windows Start menu, you should have a new group: Cygwin-X. From there, run XWin Server.
    4. In your Cygwin shell, run export DISPLAY=:0.0.

    You’ll need to repeat step 3 every time you reboot your computer, and step 4 every time you open a new Cygwin shell (or just run echo "export DISPLAY=:0.0" >>~/.profile to have it run automatically whenever you create a new shell).

    In the comments, it seems some people are getting errors stating ‘couldn’t connect to display ":0.0"’. If you get that, mouse over the X that should have appeared in your system tray (you may need to click the little up icon if the X icon has been hidden); the pop-up title should say something like "Cygwin/X Server:1.0". Use that ":1.0" (or whatever you see) as the value for DISPLAY in step 4, rather than ":0.0", making sure to include the colon.

    If you have any other problems starting the X server, you will probably find you have a file called ~/.xsession-errors; check out the contents of that for what’s going wrong. Also check whether you have a ~/.startxwinrc file, and try deleting it and seeing if that fixes the problem.

    For the interested, the reason the X11 packages aren’t installed automatically is that they’re not technically needed: it’s possible through somewhat convoluted means to use a different X11 server than the one Cygwin installs when you install the "xinit" package.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to launch 'TextMate' from an App, and I used the following code.
Imagine a DOS style .cmd file which is used to launch interdependent windowed applications
In the past I have used MAPISendMail to launch Outlook (or whatever the desired
I've used several apps now that launch the itunes store directly from the app.
In the past, I've used the runas commandline to launch another instance if IE
What’s the difference between Process and ProcessStartInfo ? I’ve used both to launch external
I'm following the iOS Programming guide on Providing Launch Images for Different Orientations and
I used to be able to launch all my Selenium2 WebDriver tests in Ruby
I am a as3 developer, I am used to use handlers everytime I launch
I have a client software program used to launch alarms through a central server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.