1、先新建shell脚本,project.sh,内容如下:
#!/bin/sh nautilus /home/firecat/Prj
nautilus是终端命令,后面是指定要跳转的文件夹路径
2、新建桌面快捷方式GotoPrj.desktop,内容如下,关注Exec和Icon变量,代表脚本和图标:
[Desktop Entry] Encoding=UTF-8 Name=GotoPrj Comment=Go To My Prj Exec=/root/Downloads/project/project.sh Icon=/root/Downloads/project/project_256px.png Terminal=false StartupNotify=true Type=Application Categories=Application;Development;
桌面双击快捷方式,即可实现一键跳转路径/home/firecat/Prj