https://bugs.kde.org/show_bug.cgi?id=427327

            Bug ID: 427327
           Summary: Service menu: %U / %F doesn't work well with files
                    with spaces
           Product: frameworks-kio
           Version: 5.74.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kio-bugs-n...@kde.org
          Reporter: deced...@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY
I have this script:

#!/bin/env zsh
if nombre=$(kdialog --title 'Crear cómic cbz' --inputbox '¿Nombre del cómic?'
"$(basename ${1:r})"); then
   if [ -z $nombre ]; then
      nombre=$(basename ${1:r})
   fi
   carpeta=$(dirname $1)
   if resultado=$(zip -jqX "$carpeta/$nombre.cbz" $@); then
      kdialog --title "Crear ComicBook" --passivepopup "Hecho. '$nombre'
creado" 5
      kioclient5 move "$@" trash:/
   else
      kdialog --title "Crear ComicBook" --error "$resultado"
   fi
fi

And I have created a service menu in Dolphin:

[Desktop Entry]
Type=Service
Actions=CrearComicBook
ServiceTypes=KonqPopupMenu/Plugin
MimeType=image/*;

[Desktop Action CrearComicBook]
Exec=crear-cbz "%F"
Name=Crear ComicBook
Icon=comic

And I have this folder with images:

├── Rise of the Black Flame
│   ├── Rise of the Black Flame-000.jpg
│   ├── Rise of the Black Flame-001.jpg
....

I've tested with %F and %U. Both fails.

The problem are:
1) Without ", the service only sends the first image. 
2) With ", sends all files like one parameter. 

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to