IgnorantGuru / spacefm

SpaceFM File Manager
http://ignorantguru.github.com/spacefm/
GNU General Public License v3.0
490 stars 72 forks source link

Mounting ISO with space names or brackets issue #773

Open ghost opened 4 years ago

ghost commented 4 years ago

I found that if a "ISO File" have spaces through names or brackets udevil / or fuseiso can't mount the iso.

Example: (DVDISO) The Idolm@ster - test at concert.iso Error!

/tmp/spacefm-user-02d3007b.tmp/72be45d4-tmp.sh: line 202: syntax error near unexpected token `(' /tmp/spacefm-user-02d3007b.tmp/72be45d4-tmp.sh: line 202: `fuseiso "${fm_file}" /home/user/.cache/spacefm/(DVDISO) The Idolm@ster - test at concert.iso && spacefm /home/user/.cache/spacefm/(DVDISO) The Idolm@ster - test at concert.iso &'

While the isofile mounted successfully removing spaces and using underscore "_", "-" or brackets like: "TheIdolm@ster test_at_concert.iso"


Temporary solution to the spaces or brackets

from Mount ISO script at the bottom there is this code fuseiso %f %a && spacefm %a &

I read on the web that i must use '' , so i replaced with: 'fuseiso %f %a && spacefm %a' &

This solution fixed both spaces/brackets issue, but is not so efficient because it opens another spacefm window. Any other attempt to fix it?


OS: Devuan FM: SpaceFM 1.0.6 (compiled from source)