"Append & Play" service menu entry not working: invalid dbus call / no autostart of Amarok

Bug #458657 reported by Daniel Hahler
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Amarok
Fix Released
Medium
amarok (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: amarok

/usr/share/kde4/services/ServiceMenus/amarok_append.desktop contains:
  [Desktop Action appendAndPlay]
  Name=Append & Play
  Icon=amarok
  Exec=qdbus org.kde.amarok /PlayerList playMedia %U

This fails however:
  $ qdbus org.kde.amarok /PlayerList playMedia /foo
  Interface '' not available in object /PlayerList at org.kde.amarok:
  org.freedesktop.DBus.Error.UnknownObject (No such object path '/PlayerList')

Instead, "/TrackList AddTrack" should get used here probably (but supports a single item only), and does not autostart Amarok [1].
The fix for now appears to be adding a script, which receives the list of items (via %U) and then calls "AddTrack" for each. Also, it could start Amarok, if it's not running and this cannot be fixed via [1].

[1] I've tried to let Amarok autostart by creating /usr/share/dbus-1/services/org.kde.amarok.service:
[D-BUS Service]
Name=org.kde.amarok
Exec=/usr/bin/amarok
But without any luck:
  $ qdbus org.kde.amarok /TrackList AddTrack foo 0
  Service 'org.kde.amarok' does not exist.

ProblemType: Bug
Architecture: i386
Date: Thu Oct 22 21:04:25 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: amarok 2:2.2.0-0ubuntu2
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: amarok
Uname: Linux 2.6.31-14-generic i686
XsessionErrors: (polkit-gnome-authentication-agent-1:4923): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Harald Sitter (apachelogger) wrote : Please report this bug at http://bugs.kde.org

Hi there!

Thanks for reporting this bug! Your bug seems to be a problem with the KDE
program itself, and not with our KDE packages. While we appreciate your issue,
it would be better if it was tracked at https://bugs.kde.org, so that the KDE
developers can deal with this speedily and have direct communication with you
as the reporter for more effective debugging.

Thanks!

 status invalid

Changed in amarok (Ubuntu):
status: New → Invalid
Revision history for this message
Daniel Hahler (blueyed) wrote :

Harald, have you tried reproducing it?

Does "qdbus org.kde.amarok /PlayerList playMedia /foo" work for you?

And does Amarok fail to autostart for you, too - when called via dbus? Do you know how to fix this? (I've tried it via /usr/share/dbus-1/services/org.kde.amarok.service)

Changed in amarok:
status: Unknown → Confirmed
Revision history for this message
Gabriel Ambuehl (gabriel-ambuehl) wrote :

This seems to be still happening in Kubuntu 10.4. Interestingly, Append to Playlist works just fine in both releases

Revision history for this message
Gabriel Ambuehl (gabriel-ambuehl) wrote :

Easy work around: simply opening the file in konqueror (using Amarok if something else is set as default for the file type) does act as Append and Play.

Changed in amarok:
status: Confirmed → Unknown
Revision history for this message
Myriam Schweingruber (myriam) wrote :

No wonder this doesn't work: the command you try to use is wrong, there is no such thing as PlayerList. Please see http://bugs.kde.org/show_bug.cgi?id=229706#c1

Changed in amarok:
status: Unknown → Confirmed
Changed in amarok:
status: Confirmed → Fix Released
Revision history for this message
Daniel Hahler (blueyed) wrote :
Changed in amarok:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.