为shell脚本文件创建快捷方式(启动器),运行异常呢?
发表于 : 2010-07-13 12:11
例如:有test.sh这样一个文件,我为其创建一个descktop文件,如下:
[Desktop Entry]
Version=1.0
Name=test
Exec=./test.sh
Terminal=true
X-MultipleArgs=false
Type=Application
Icon=/usr/cobra/Dragon.bmp
Categories=Application;Internet;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;
StartupNotify=true
Name[zh_CN]=test
结果呢,双击test.sh可以正常执行脚本。但是双击启动器,就一黑框闪了一下,然后就没了。
请知情人士指教:)
[Desktop Entry]
Version=1.0
Name=test
Exec=./test.sh
Terminal=true
X-MultipleArgs=false
Type=Application
Icon=/usr/cobra/Dragon.bmp
Categories=Application;Internet;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;
StartupNotify=true
Name[zh_CN]=test
结果呢,双击test.sh可以正常执行脚本。但是双击启动器,就一黑框闪了一下,然后就没了。
请知情人士指教:)