Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: koso on September 26, 2009, 11:18:47 am

Title: Konsole as Terminal
Post by: koso on September 26, 2009, 11:18:47 am
Hello,

I am using konsole as terminal. Problem is that compiled programs ignores "Execution working directory" setting and uses my home directory. It is ignored even if I set it to absolute path.
Default xterm works as expected.

Any idea, how to solve this problem?


My C:B settings:
shell: /bin/sh -c
terminal command: konsole -e
system: 32bit Kubuntu, KDE4.3.1, latest Jens debian C::B build.
Title: Re: Konsole as Terminal
Post by: Ceniza on September 26, 2009, 02:47:20 pm
Here is the answer (http://forum.kde.org/viewtopic.php?f=22&t=33616).

In short, you have to use the --workdir option.

What I don't know is if there is a variable that can be used to get the Execution Working Directory.
Title: Re: Konsole as Terminal
Post by: Jenna on September 26, 2009, 03:42:28 pm
It's $WORKDIR,
whole command:

Code
konsole --workdir $WORKDIR --title $TITLE -e

Don't use -T for the title.