Summary: | Service menu: %U / %F doesn't work well with files with spaces | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Juan Simón <decedion> |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | alexander.lohnau, kdelibs-bugs-null, nate |
Priority: | NOR | ||
Version First Reported In: | 5.74.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Juan Simón
2020-10-04 13:31:35 UTC
More details. With ", the script says parameter $1 is "/tmp/Rise of the Black Flame/Rise of the Black Flame-000.jpg /tmp/Rise of the Black Flame/Rise of the Black Flame-001.jpg /tmp/Rise of the Black Flame/Rise of the Black Flame-002.jpg /tmp/Rise of the Black Flame/Rise of the Black Flame-003.jpg /tmp/Rise of the Black Flame/Rise of the Black Flame-004.jpg ...." Without ", the script only receives the first file: $@ = "/tmp/Rise of the Black Flame/Rise of the Black Flame-000.jpg" Is this a regression or was it always a problem? Hmm, on master it appears to work: My exec line is: >Exec=/home/user/dostuff.sh %F The script content: >#!/bin/bash > >echo $@>~/test.log And the output looks fine: >/home/user/projects/hello there/New Folder /home/user/projects/hello there/New Folder (1) Also the args with which the process got called looks good (kcoreaddons/src/lib/io/kprocess.cpp:246): >"/home/user/dostuff.sh" ("/home/user/projects/hello there/New Folder", "/home/user/projects/hello there/New Folder (1)") OpenMode( "ReadOnly|WriteOnly" ) Works for me too. I suspect an issue with your script. Can you tell us whether or not it works with the simple script that Alexander posted? Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |