Debug setting allows Display=0 yet my Display=1 so I get "GTK-warning …"

Sysprogs forums Forums VisualGDB Debug setting allows Display=0 yet my Display=1 so I get "GTK-warning …"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21255
    roy111
    Participant

    Hi,

    I am connecting from VisualGDB on windows 10 to Ubuntu (docker) C++ application.

    I managed to build the application and run it  when a display window of the application is disabled, however when the display is enabled I get an error: “Gtk-warning cannot open display”

    I did change the “Remote X11 windows are to “Shown on the remote computer (Display=:0). It used to work in the past and the window did open when the Ubuntu display index was indeed 0, but now the display index is “1”  and not “0”, yet the only option available from the VisualDGB menu (Debug settings) are only for a fixed Display=0.   How can I change the display to 1 so I can enable the window ?

    Thanks!

    #21258
    support
    Keymaster

    Hi,

    Please try selecting the default “Shown on the Windows computer via XMing” option and then specify the DISPLAY variable manually (note the caps) via the “Additional Environment” field above.

    #21260
    roy111
    Participant

    It worked, thanks!!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.