https://bugs.kde.org/show_bug.cgi?id=522372
Bug ID: 522372
Summary: Service menu for directory does not populate %u/%U
when another file was selected
Classification: Applications
Product: dolphin
Version First 26.04.2
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 193840
--> https://bugs.kde.org/attachment.cgi?id=193840&action=edit
6.7.1 demonstration of the bug
DESCRIPTION
It is possible to execute a servicemenu with MIME type "inode/directory" by
clicking the background of a Dolphin pane. However, if another file or
directory was selected before opening the context menu, then the %u/%U
variables are empty when the action executes. This regressed somewhere between
Dolphin 25.08.1 and 26.04.2; the variables were correctly populated in the
former version.
STEPS TO REPRODUCE
1. Add this minimal servicemenu to
~/.local/share/kio/servicemenus/testservicemenu.desktop:
[Desktop Entry]
Type=Service
MimeType=inode/directory;
X-KDE-Priority=TopLevel
Actions=testservicemenu1
[Desktop Action testservicemenu1]
Name=Show directory
Exec=/usr/bin/notify-send test "u=%u\nU=%U"
2. Open a Dolphin window to a directory which contains at least one file.
3. Click to select a file in the opened directory.
4. Right-click the background of the Dolphin window to target the opened
directory. Run the new "Show directory" action from the context menu.
OBSERVED RESULT
The %u and %U placeholders are empty in the executed action. (second half of
the attached video)
EXPECTED RESULT
%u and %U should refer to the directory that is open. This is the behavior
which occurs when no file was selected before opening the context menu.
SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.7.1
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
ADDITIONAL INFORMATION
I performed the same test with Plasma 6.4.5/Dolphin 25.08.1/Kubuntu 25.10. The
bug does not occur there.
--
You are receiving this mail because:
You are watching all bug changes.