User forums > Using Code::Blocks
cb_console_runner arguments
Jenna:
--- Quote from: wally on February 11, 2009, 08:36:02 pm ---Thank you for this info !
--- End quote ---
To be more clear, the issue with the quotes is fixed, but that's not the cause for the returncode 254.
With the quotes the "konsole" closes immediately without stopping.
254 is returned because of the "-T" paramter,tha does not exist for "konsole" (at least not in kde4).
wally:
running C::B SVN 5456 on KDE3.
Seems the quotes and the "-T" option are not the reason of my problem.
konsole --help reports the "-T" option as window title.
A:
following command in xterm and in konsole starts a new konsole as expected.
--- Code: ---konsole -T hello -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/op/devel/test/hello/bin/Release/hello
--- End code ---
B:
running from inside C::B: with env konsole -e
hangs and require to kill konsole process
C:
running from inside C::B: with env xterm -e
works as expected with window title cb_console_runner
D:
running from inside C::B: with env konsole -T $TITLE -e
Checking for existence: /home/devel/test/hello/bin/Release/hello
Executing: konsole -T hello -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/devel/test/hello/bin/Release/hello (in /home/devel/test/hello/.)
Process terminated with status 254 (0 minutes, 0 seconds)
E:
running from inside C::B: with env xterm -T $TITLE -e
Checking for existence: /home/op/devel/test/hello/bin/Release/hello
Executing: xterm -T hello -e /usr/bin/cb_console_runner LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. /home/op/devel/test/hello/bin/Release/hello (in /home/op/devel/test/hello/.)
Process terminated with status 0 (0 minutes, 4 seconds)
works as expected with window title hello
F:
on my system also is kde4.1installed.
I have konsole 1.6.6(using KDE 3.5.9) in path /opt/kde3/bin/konsole
and
konsole version 2.1 using KDE 4.1.3) in /usr/bin/konsole
C::B running in KDE 3.5.9 environment.
/usr/bin/konsole --help does not report the -T option, exactly as Jens said.
setting environment to /opt/kde3/bin/konsole -T $TITLE -e
works nice now.
I assume the kde4 /usr/bin/konsole will works without the -T $TITLE parameter
as "konsole -e" environment setting in KDE4 environment.
regs wally
Navigation
[0] Message Index
[*] Previous page
Go to full version