How can I use gnome-terminal in qt creator?

20,945

Solution 1

This issue is reported as a bug in Qt Creator.
https://bugreports.qt.io/browse/QTCREATORBUG-1633


Update: Seems to be fixed on 31 Aug 2012.

Solution 2

The equivalent of xterm -e for gnome-terminal is gnome-terminal -e, try it. If -e does not work try -x.

Solution 3

You can figure out all available options with gnome-terminal --help-all:

-e, --command      Execute the argument to this option inside the terminal

Solution 4

I ran into this same issue and it turned out I had too many instances of my console application running in the background. I left my settings to gnome-terminal -x and instead just closed all the running instances of my application then tried again and it worked.

Share:
20,945
Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin almost 2 years

    I can adjust the settings to use a terminal rather than just plain output. However, I can't seem to figure out the correct command to input for using gnome-terminal. I can use 'xterm -e', a fine enough solution, but I figured I'd like to know anyway.

    When I try to use 'gnome-terminal -e', running my program will result in a blank terminal quickly opening and closing. I have to 'break' the execution afterward (sort of like an infinite loop). When using 'gnome-terminal -x' I get:

    Cannot connect creator comm socket /tmp/qt_temp.h17333/stub-socket: No such file or directory

  • pyn
    pyn over 12 years
    Hi, brunopereira81, lgarzo. I'm sorry, guys, I wrote the question in a rush and completely forgot to add that I've tried these two. Please read my updated description.
  • anilkumar b
    anilkumar b over 12 years
    Hi, brunopereira81, lgarzo. I'm sorry, guys, I wrote the question in a rush and completely forgot to add that I've tried these two. Please read my updated description.
  • doug65536
    doug65536 over 7 years
    How does this answer the question? I have QtCreator built on Mar 14 2016 and it still shows a blank gnome-terminal. The "fixed" link is broken.
  • doug65536
    doug65536 over 7 years
    Here's a comment in the bug from 2012: In 2.4.1 the bug is still here. I tried gnome-terminal -e but it has no effect at all; gnome-terminal -x opens the terminal but outputs nothing into it. I am running Ubuntu. This bug has been hanging since 2010?! I guess we're up to six years and still not fixed. Bug is closed though? Don't hold your breath, bug is closed as "Resolved", whatever that means.
  • pyn
    pyn over 6 years
    It worked !!! but why -e is not working ??