Skip to content

Nemo actions pass all files as a single argument #693

@FM33

Description

@FM33

Hello,
This is a nemo-action specific issue. No problem using nemo scripts folder.
This makes scripts to fail with multiple selection + filenames containing spaces.

Test script :

!/bin/sh

if [ -e /tmp/tbn.txt ]; then rm /tmp/tbn.txt;fi
for file in "$@"; do
echo $file >> /tmp/tbn.txt
done
gedit /tmp/tbn.txt &

Test action :
[Nemo Action]
Active=true
Name=Test
Exec=/home/fabien/TMP/testbugnemo "%F"
Selection=NotNone
Extensions=any

Output with action :
/home/fabien/TMP/file 1 /home/fabien/TMP/file 2

Output with script submenu :
file 1
file 2

Output with action, without quotes around %F :
/home/fabien/TMP/file
1
/home/fabien/TMP/file
2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions