! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Thunar 1.6.6 Configure custom actions not working with filenames containing s...
Status:
RESOLVED: FIXED

Comments

Description pressanykey 2015-03-23 03:51:22 CET
Manjaro 0.8.12 (Xfce 4.12)

10837 is related.

The following script worked in 4.10

/home/whatever/bin/MediaInfo.sh:
#!/bin/sh

for inpath in $@; do
   mediainfo-gui "${inpath}" &
done

with the Thunar custom action:
/home/whatever/bin/MediaInfo.sh "%F"

It _only_ works in 4.12 if there are _no_ spaces in the selected filename. In 4.10, the "%F" worked for files that contained spaces.
So, it's not specifically mediainfo-gui - it's that custom actions isn't processing files with spaces correctly.

Also, I'm getting a dangling quote at the end of filenames emitted from the custom action into the sh script. If I switch out mediainfo-gui in the script with smplayer, I see a terminating single quote at the end of the file name in the file list.
Comment 1 pressanykey 2015-03-24 02:22:16 CET
Sorry, Forum showed me how to fix.

So, the custom command doesn't need double quotes around the %f or %F..
/home/whatever/bin/MediaInfo.sh %F

And the /home/whatever/bin/MediaInfo.sh script that gets called looks something like:

#!/bin/sh

for inpath in "$@"; do
   mediainfo-gui "${inpath}" &
done


I needed the double quotes: "$@"

So, this wasn't a problem.
Comment 2 pressanykey 2015-03-24 02:23:54 CET
Resolved in the forum:

http://forum.xfce.org/viewtopic.php?pid=36899#p36899

Bug #11751

Reported by:
pressanykey
Reported on: 2015-03-23
Last modified on: 2015-03-24

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

Additional information