Bug 143999

Summary: desktop files containing f parameter are not shown in service menu when using "system:/" or "media:/"
Product: [Unmaintained] kio Reporter: gmud <geroxp>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED NOT A BUG    
Severity: normal CC: adawit, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: konq_popupmenu.cc.diff

Description gmud 2007-04-09 15:40:48 UTC
Version:           3.5.6 (using KDE KDE 3.5.6)
Installed from:    Gentoo Packages
OS:                Linux

Steps to reproduce:

Create a new service type, e.g. "media/testtype" with extension "*.tt". Make a new servicemenu-entry by creating the following desktop file:

[Desktop Entry]
Encoding=UTF-8
ServiceTypes=media/testtype
Actions=dosomething

[Desktop Action dosomething]
Name=Do something
Icon=media-floppy
Exec=/home/user/bin/dosomething.sh %f

Now create a file with the extension of the service type ("test.tt"). Open the path containing the file with konqueror not with the real path ("/home/user/"), but with "system:/home".
The servicemenu will not be shown unless you replace %f with %u.

Expected behaviour:
Show konqueror service menu and pass "media:/home/test.tt" as "/home/user/test.tt".

Some bash-scripts expect a real path and not soemthing like "system:/path/to/file" or "media:/path/to/file". %f is the only parameter that should do it according to 
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html
Comment 1 David Faure 2007-04-09 19:07:10 UTC
Indeed.
Can you test this patch?

David Faure.


Created an attachment (id=20217)
konq_popupmenu.cc.diff
Comment 2 Dawit Alemayehu 2013-06-14 12:57:41 UTC
Does this have to be tested for KDE 4 even though the system:/ no longer exists??
Comment 3 Nate Graham 2018-04-25 21:32:23 UTC
Neither one still exists, in fact.