Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 2.4.0
-
None
Description
If you have a project with the setting "Run in terminal" enabled and your terminal is "konsole -e", trying to run the project will open a konsole window and show:
Cannot connect creator comm socket /tmp/qt_temp.p10459/stub-socket: No such file or directory Press <RETURN> to close this window...
ps shows these processes running:
14611 pts/9 SNl 0:00 konsole -e /home/thiago/obj/qt/creator/bin/qtcreator_process_stub run /tmp/qt_temp.p10459/stub-socket Press <RETURN> to close this window... /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl /tmp/qt_temp.N10459 /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl/tst_qurl 14617 pts/5 SNs+ 0:00 \_ /home/thiago/obj/qt/creator/bin/qtcreator_process_stub run /tmp/qt_temp.p10459/stub-socket Press <RETURN> to close this window... /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl /tmp/qt_temp.N10459 /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl/tst_qurl
Note that konsole will exit and detach from its parent process. It will continue running in the background.
It's possible to make it not exit by adding the "--nofork" option, but most users will not know this. It's preferrable to find a solution from Creator.
Even with --nofork, nothing runs. The process listing is:
10459 pts/9 SNl 38:51 \_ qtcreator 14724 pts/9 SNl 0:00 \_ konsole --nofork -e /home/thiago/obj/qt/creator/bin/qtcreator_process_stub run /tmp/qt_temp.P10459/stub-socket Press <RETURN> to close this window... /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl /tmp/qt_temp.c10459 /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl/tst_qurl 14726 pts/5 SNs+ 0:00 \_ /home/thiago/obj/qt/creator/bin/qtcreator_process_stub run /tmp/qt_temp.P10459/stub-socket Press <RETURN> to close this window... /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl /tmp/qt_temp.c10459 /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl/tst_qurl 14727 pts/5 TN 0:00 \_ /home/thiago/obj/qt/creator/bin/qtcreator_process_stub run /tmp/qt_temp.P10459/stub-socket Press <RETURN> to close this window... /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl /tmp/qt_temp.c10459 /home/thiago/obj/qt/qt5/qtbase/tests/auto/qurl/tst_qurl
PS: I recommend defaulting to "xvt -e"