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