【Ubuntu】创建桌面图标双击可以运行程序 |
您所在的位置:网站首页 › 桌面图标怎么设置双击打开应用 › 【Ubuntu】创建桌面图标双击可以运行程序 |
主要参考该文章: Linux Ubuntu 18.04下创建桌面图标让用户双击图标可以运行程序_CP Coding的博客-CSDN博客_ubuntu 双击运行程序 补充说明:*.desktop文件放在路径:/home/sgsg/Desktop/,文件内容如下: [Desktop Entry] Name = autoTest Terminal=true Exec = /home/sgsg/autoT/autoTest.sh Icon = /home/sgsg/autoT/test.png Type = ApplicationautoTest.sh文件内容如下: #!/bin/bash sudo /home/sgsg/autoT/autoTest注意:可执行文件autoTest必须放在脚本中,该文件无法通过Exec直接调用。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |