DCOP to D-BUS conversion for shellscripts

Ian Monroe ian at monroe.nu
Mon Jan 14 15:32:21 UTC 2008


On Jan 13, 2008 12:29 PM, Alanceil <alanceil at gmx.net> wrote:
> Hello everyone,
>
> In KDE4, they replaced the DCOP system with D-BUS (and as far as I know,
> there is no wrapper for DCOP).
> Now, I have several shellscripts that read & write data to/from Amarok,
> using the "dcop" command, but I have not yet found a good replacement
> for this.
>
> So my question is:
> Can you point me to a tutorial that covers porting from DCOP to D-BUS in
> shellscripts ? Everything I have found were tutorials that explain how
> to do this in C.
>
> What made "dcop" easy to use was that you could just enter "dcop" and
> get a list of all running programs that provided dcop calls. You could
> then enter "dcop amarok" to get all calls of Amarok and so on.
> With "dbus-send", that is no longer possible, and I haven't been able to
> port those scripts. Is there a command (or several ones) that do just that ?
>
> Thank you very much,
> -Tom

Note that its pretty likely that the Amarok 2 API will change a bit
before its released. However we don't plan on removing any calls,
maybe just moving stuff around. So anything you do should be easy to
port still.

Ian Monroe



More information about the Amarok mailing list