Bug 183497

Summary: Scripting API to add a context menu to everything representing a song or file
Product: [Applications] amarok Reporter: Mathias Panzenböck <grosser.meister.morti>
Component: Tools/Script ManagerAssignee: Amarok Developers <amarok-bugs-dist>
Status: REPORTED ---    
Severity: wishlist CC: dirleyrls, ian.monroe
Priority: NOR    
Version: 2.3-GIT   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on: 313283    
Bug Blocks:    

Description Mathias Panzenböck 2009-02-07 00:29:01 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Fedora RPMs

A script API with which you would be able to add a rightclick menu to everything representing a song or file would be *very* handy. I mean to everywhere where there are files.

Such "things" would be: playlist entries, the entries of podcast feeds, songs in your collection, songs in the magnatunes browser etc. The callback of such a menu should get some kind of handle to the rightclicked song (e.g. url as a string or the metadata of the element - which includes the url).

Using such an API would be helpful to implement filemanagement features like the ones amarok 1.4 had.
Comment 1 Mathias Panzenböck 2009-02-07 00:33:25 UTC
PS: This should be *one* api to the menu to *all* the places. Something similar to konquerors/dolphins servicemenus comes to mind. There you define a servicemenu for a given mimetype pattern and konqueror/dolphin offers the menu everywhere the user can get a handle to such a file (e.g. also rightclick onto a webpage background, when the mimetype was text/html).

Of course a mimetype would no be necessary here. Just a definition of a menu callback for any kind of file (also more than one file at once if more are selected) would be enough.
Comment 2 Myriam Schweingruber 2010-01-08 20:49:07 UTC
Changing version
Comment 3 Simeon 2011-12-20 15:35:48 UTC
This wish has been granted.This report should be removed.
Comment 4 Myriam Schweingruber 2011-12-21 00:04:51 UTC
(In reply to comment #3)
> This wish has been granted.This report should be removed.

So sorry, please disregard this message, there was a misunderstanding with the
Google Code-In student.
Comment 5 Dirley Rodrigues 2011-12-29 19:34:54 UTC
Hello, there. I would like to work on this bug, if possible, though it's not tagged as a JuniorJob. Is it possible? If so, is there any kind of mentorship or something? I already have some working code on this specific subject and would like to clarify some points.
Comment 6 Myriam Schweingruber 2011-12-30 21:31:53 UTC
Dirley: of course you are very welcome to help implementing this. Could you please come to #amarok on irc.freenode.net and post this to the mailinglist amarok-devel@kde.org?