[Kde-bindings] DCOP calls from ruby

Mark Constable markc at renta.net
Wed Jul 6 02:55:49 UTC 2005


I'm trying to emulate this call, that works from the shell,
into a ruby/korundum equivalent but I can't quite get how or
where to add the second "playlist" component.

dcop amarok playlist playMedia file:///some/path/$1

def setURLInBrowser(item)
  if item.nil? then return end
  dcopRef = KDE::DCOPRef.new("amarok", "Browser")
  if ! dcopRef.playMedia('file:///some/path/' + item.text(0))
    Qt.qWarning("Error with DCOP\n")
  end
end

Would anyone have a suggestion ?

--markc



More information about the Kde-bindings mailing list