nemoタスクを使用してisoファイルをマウントする方法は?

nemoタスクを使用してisoファイルをマウントする方法は?

私は次の記事を読んだ。

https://wiki.archlinux.org/index.php/Nemo
https://wiki.archlinux.org/index.php/Mounting_images_as_user

Nemo Actions私はマウントファイルを試しましたが、isoコンテキストメニューオプションをクリックしても何も起こりません。

私のステップ:

  1. sudo pacman -S fuseiso
  2. nemo-actions-iso-mount.sh内蔵/usr/bin/

    #!/bin/bash    
    FILE=$(basename "$1")    
    MOUNTPOINT="$HOME/Desktop/$FILE"  
    fuseiso -p "$1" "$MOUNTPOINT"
    
  3. sudo chmod a+x /usr/bin/nemo-actions-iso-mount.sh

  4. 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

おすすめ記事