I want to mount iso files without root permission by
fuseiso, and this is how to mount a iso file:
fuseiso -p '/path/to/isofilename' '/media/isofilename'
, so I make a .desktop file followed Freedesktop Standard (The Exec key) as bellow:
#!/usr/bin/env xdg-open [Desktop Entry] Name=Mount ISO image Name[zh_TW]=掛載光碟映像檔 Exec=fuseiso -p %U "/media/$(basename %U)" Terminal=false MimeType=application/x-cd-image
, but it failed.
I think it failed because of
$(basename %U), if it is changed to a fixed string, the iso file can be mounted.
How can I solve this problem?