How can I use gnome-terminal in qt creator?












8















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











share|improve this question





























    8















    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











    share|improve this question



























      8












      8








      8


      1






      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











      share|improve this question
















      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








      gnome-terminal qt-creator






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 10 '11 at 2:08

























      asked Nov 9 '11 at 17:20







      user6658





























          4 Answers
          4






          active

          oldest

          votes


















          6














          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.






          share|improve this answer


























          • 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
            Oct 25 '16 at 17:00








          • 1





            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.

            – doug65536
            Oct 25 '16 at 17:07





















          2














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






          share|improve this answer
























          • 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.

            – user6658
            Nov 9 '11 at 20:54











          • It worked !!! but why -e is not working ??

            – noone
            Mar 14 '18 at 12:40



















          1














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



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





          share|improve this answer
























          • 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.

            – user6658
            Nov 9 '11 at 21:14



















          1














          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|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f77554%2fhow-can-i-use-gnome-terminal-in-qt-creator%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown
























            4 Answers
            4






            active

            oldest

            votes








            4 Answers
            4






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            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.






            share|improve this answer


























            • 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
              Oct 25 '16 at 17:00








            • 1





              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.

              – doug65536
              Oct 25 '16 at 17:07


















            6














            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.






            share|improve this answer


























            • 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
              Oct 25 '16 at 17:00








            • 1





              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.

              – doug65536
              Oct 25 '16 at 17:07
















            6












            6








            6







            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.






            share|improve this answer















            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.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 30 at 17:25









            Max Matti

            33




            33










            answered Dec 2 '11 at 3:51









            ulidtkoulidtko

            4,00112542




            4,00112542













            • 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
              Oct 25 '16 at 17:00








            • 1





              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.

              – doug65536
              Oct 25 '16 at 17:07





















            • 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
              Oct 25 '16 at 17:00








            • 1





              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.

              – doug65536
              Oct 25 '16 at 17:07



















            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
            Oct 25 '16 at 17:00







            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
            Oct 25 '16 at 17:00






            1




            1





            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.

            – doug65536
            Oct 25 '16 at 17:07







            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.

            – doug65536
            Oct 25 '16 at 17:07















            2














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






            share|improve this answer
























            • 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.

              – user6658
              Nov 9 '11 at 20:54











            • It worked !!! but why -e is not working ??

              – noone
              Mar 14 '18 at 12:40
















            2














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






            share|improve this answer
























            • 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.

              – user6658
              Nov 9 '11 at 20:54











            • It worked !!! but why -e is not working ??

              – noone
              Mar 14 '18 at 12:40














            2












            2








            2







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






            share|improve this answer













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







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 9 '11 at 18:55









            Bruno PereiraBruno Pereira

            60.2k26179208




            60.2k26179208













            • 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.

              – user6658
              Nov 9 '11 at 20:54











            • It worked !!! but why -e is not working ??

              – noone
              Mar 14 '18 at 12:40



















            • 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.

              – user6658
              Nov 9 '11 at 20:54











            • It worked !!! but why -e is not working ??

              – noone
              Mar 14 '18 at 12:40

















            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.

            – user6658
            Nov 9 '11 at 20:54





            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.

            – user6658
            Nov 9 '11 at 20:54













            It worked !!! but why -e is not working ??

            – noone
            Mar 14 '18 at 12:40





            It worked !!! but why -e is not working ??

            – noone
            Mar 14 '18 at 12:40











            1














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



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





            share|improve this answer
























            • 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.

              – user6658
              Nov 9 '11 at 21:14
















            1














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



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





            share|improve this answer
























            • 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.

              – user6658
              Nov 9 '11 at 21:14














            1












            1








            1







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



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





            share|improve this answer













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



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






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 9 '11 at 19:15









            lgarzolgarzo

            13.6k53335




            13.6k53335













            • 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.

              – user6658
              Nov 9 '11 at 21:14



















            • 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.

              – user6658
              Nov 9 '11 at 21:14

















            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.

            – user6658
            Nov 9 '11 at 21:14





            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.

            – user6658
            Nov 9 '11 at 21:14











            1














            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|improve this answer




























              1














              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|improve this answer


























                1












                1








                1







                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|improve this answer













                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|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 3 '13 at 17:23









                Cory KleinCory Klein

                338212




                338212






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f77554%2fhow-can-i-use-gnome-terminal-in-qt-creator%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                    Eduardo VII do Reino Unido