Bug 143999 - desktop files containing f parameter are not shown in service menu when using "system:/" or "media:/"
Summary: desktop files containing f parameter are not shown in service menu when using...
Status: RESOLVED NOT A BUG
Alias: None
Product: kio
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-09 15:40 UTC by gmud
Modified: 2018-04-25 21:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
konq_popupmenu.cc.diff (3.22 KB, text/x-diff)
2007-04-09 19:07 UTC, David Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
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.