我有一个看起来像这样的启动器......
[Desktop Entry]
Name=Mount Options
Comment=Mount Utility (Unmount by Default)
Exec=sh -c "sudo umount /media/*"
Icon=/usr/share/icons/nouveGnomeGray/48x48/places/gtk-network.png
Terminal=true
Type=Application
StartupNotify=true
Actions=SSH Dev-Derek;Mount Dev-Derek;
[Desktop Action SSH Dev-Derek]
Name=SSH Dev-Derek
Exec=terminator -e "ssh [email protected]"
OnlyShowIn=Unity;
[Desktop Action Mount Dev-Derek]
Name=Mount Dev-Derek
Exec=terminator -e "sshfs [email protected]:/var /media/myfolder/"
OnlyShowIn=Unity;
左键单击卸载有效。ssh 命令有效。SSHFS 命令允许我输入我的凭据,但不能挂载共享。
如果我打开终端并使用命令,我可以正常挂载...但这就是 Quicklists 的用途。
~$ sshfs [email protected]:/var /media/myfolder/
我尝试过使用:
Exec=sh -c "sshfs [email protected]:/var /media/myfolder/"
Exec=gnome-terminal -e "sshfs [email protected]:/var /media/myfolder/"