codelite用gnome终端方法...

其它类软件,非上述版软件
回复
头像
daniel_c
帖子: 194
注册时间: 2010-01-03 11:35

codelite用gnome终端方法...

#1

帖子 daniel_c »

哀..没人告诉我怎么只有自己乱搞..
只要打开在usr/bin/codelite_xterm文件
然后将里面改成
#!/bin/bash

## A wrapper script around the xterm utility
## which allows codelite to export LD_LIBRARY_PATH into the exterm
## shell
if [ $# -ne 2 ]; then
echo "usage: codelite_xterm <Title> <Program>"
exit 1
fi

program_title=$1
if [ "${LD_LIBRARY_PATH}" = "" ]; then
## LD_LIBRARY_PATH is not defined OR empty
## Run xterm without the bash wrapper
gnome-terminal -t $program_title -x $2 2> /dev/null
else
gnome-terminal -t $program_title -x /bin/bash -c 'export LD_LIBRARY_PATH=$0;shift;$@' $LD_LIBRARY_PATH $@ 2> /dev/null
fi



就可以了..
头像
Athena Asamiya
帖子: 303
注册时间: 2010-03-14 19:57

Re: codelite用gnome终端方法...

#2

帖子 Athena Asamiya »

:em06 这不是自己折腾出来了么
放波打你……
回复