从脚本启动图形界面程序

Ubuntu上如果从脚本启动图形界面程序,会有一个终端窗口始终开启,如果在脚本里用nohup启动,就可以关闭这个窗口了,例如下面的脚本演示了启动eclipse程序:

export PATH=$PATH:/opt/jre1.6.0_14/bin

nohup /opt/eclipse/eclipse 1>/dev/null 2>/dev/null

参考: http://askubuntu.com/questions/10547/how-to-clean-launch-a-gui-app-via-the-terminal-so-it-doesnt-wait-for-terminati

原文地址:https://www.cnblogs.com/darkmatter/p/3605662.html