Qt Creator: Run in Terminal

Viewed 48024

I want to get full console functionality running the program in Qt Creator, the same problem as described here: Console input with Qt Creator

When I check "Run in Terminal" in configuration properties, empty terminal window is opened, without my program output. Tools - Options - General - Terminal has this value: "x-terminal-emulator -e". How can I get this working? My OS is Ubuntu 10.4.

Note: Please don't close this question, it is not duplicated! I need solution for Ubuntu OS.

2 Answers

Another nice trick to avoid having to do console commands, or running a bash script is to just modify the .desktop file.

On Ubuntu those are located here:

ls /usr/share/applications/

If you wanted to edit Qt Creator for example you could do.

nano /usr/share/applications/qtcreator.desktop

Edit the variable "Exec" should look like "Exec=/usr/bin/qtcreator" and change it to.

bash -i -c /usr/bin/qtcreator

Or whatever your path to the application you want to change is.

This will enable your different environmental variables with this method as well which is what I assume you are trying to do.

Related