我读过这些文章:
https://wiki.archlinux.org/index.php/Nemo
https://wiki.archlinux.org/index.php/Mounting_images_as_user
并尝试使用Nemo Actions
挂载iso
文件,但当我单击上下文菜单选项时没有任何反应。
我的步骤:
sudo pacman -S fuseiso
创建
nemo-actions-iso-mount.sh
于/usr/bin/
#!/bin/bash FILE=$(basename "$1") MOUNTPOINT="$HOME/Desktop/$FILE" fuseiso -p "$1" "$MOUNTPOINT"
sudo chmod a+x /usr/bin/nemo-actions-iso-mount.sh
mountiso.nemo_action
在中创建脚本$HOME/.local/share/nemo/actions/
[Nemo Action] Name=Mount Image File: %N Comment=Create an folder in ~/Desktop with the name of the image file Exec=/usr/bin/nemo-actions-iso-mount.sh %N Selection=S Extensions=iso;nrg;bin;img;mdf; Mimetypes=*/*
答案1
好的,我找到原因了:该字段Exec
不支持参数%N
,应该使用%F
。