Scripts cannot be executed when the file path contains spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcmanfm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Scripts cannot be executed from PCManFM when the file path contains spaces.
For example, I have a folder called "/storage/Movies & Shows" and a file at "/storage/Movies & Shows/rename.sh" which is set to be executable. When I double-click on the file, and I click "Execute in Terminal", I get the two messages, each say "Failed to execute child process "/storage/Movies" (No such file or directory)" as seen in the attachment. If I close each window, I get a blank Terminal, leaving 2 Terminals left over in total.
Imgur album showing the steps and error: https:/
What I expected to happen: The script would be executed in a Terminal.
What happened instead: The script could not be found because the file path contains spaces.
This bug should be easy enough to fix, all that would need is to add quotes around the file path of the command that runs the executables.
Temporary work-around: Tools -> Open Current Folder in Terminal -> Run the file manually.
Xubuntu 16.04 LTS
Description: Ubuntu 16.04 LTS
Release: 16.04
apt-cache policy pcmanfm
pcmanfm:
Installed: 1.2.4-1
Candidate: 1.2.4-1
Version table:
*** 1.2.4-1 500
500 http://
100 /var/lib/
I unfortanetly cannot reproduce this bug so I will nead more information.
What filesystem is on /storage?
I tried this using both xfs and ext4 filesystems and it seemed to work.
IF you have a folder with spaces in your home folder does it not run this.
I got this to work with both ext4 and xfs.