dbus Digest, Vol 35, Issue 25

@4u fd4u at vplace.de
Sat Jun 21 06:45:11 PDT 2008


Hi Arnel,

yes it is possible - please read 
https://developer.skype.com/Docs/ApiDoc/Skype_API_on_Linux as well as 
https://developer.skype.com/Docs/ApiDoc/Skype_API_reference for more 
information how to create D-BUS messages.

Basically you will call "Invoke" and "Notify" for all available commands.

Have fun
Tobias

Arnel Labarda schrieb:
> Hi All,
> 
> Can i make d-bus php binding communicate with skype?
> 
> 
> On Thu, Jun 19, 2008 at 4:41 PM, <dbus-request at lists.freedesktop.org 
> <mailto:dbus-request at lists.freedesktop.org>> wrote:
> 
>     Send dbus mailing list submissions to
>            dbus at lists.freedesktop.org <mailto:dbus at lists.freedesktop.org>
> 
>     To subscribe or unsubscribe via the World Wide Web, visit
>            http://lists.freedesktop.org/mailman/listinfo/dbus
>     or, via email, send a message with subject or body 'help' to
>            dbus-request at lists.freedesktop.org
>     <mailto:dbus-request at lists.freedesktop.org>
> 
>     You can reach the person managing the list at
>            dbus-owner at lists.freedesktop.org
>     <mailto:dbus-owner at lists.freedesktop.org>
> 
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of dbus digest..."
> 
> 
>     Today's Topics:
> 
>       1. [Python] Problem with PolicyKit (Alberto Milone)
>       2. Re: D-BUS PHP Binding (@4u)
>       3. [PATCH] Add DBusServer wrapper for dbus-python. (Huang Peng)
> 
> 
>     ----------------------------------------------------------------------
> 
>     Message: 1
>     Date: Thu, 19 Jun 2008 09:22:20 +0200
>     From: Alberto Milone <albertomilone at gmail.com
>     <mailto:albertomilone at gmail.com>>
>     Subject: [Python] Problem with PolicyKit
>     To: Dbus list <dbus at lists.freedesktop.org
>     <mailto:dbus at lists.freedesktop.org>>
>     Message-ID: <1213860140.7046.3.camel at alberto-desktop>
>     Content-Type: text/plain; charset="us-ascii"
> 
>     I'm not sure as to whether this email arrived to the mailing list (since
>     I haven't been notified), but if it had arrived, I apologise in advance
>     for the spam. Here's my previous email:
> 
>     Hi all,
> 
>     I'm experimenting a bit with Dbus and PolicyKit in Python but I'm facing
>     a problem:
> 
>     I see the dialog which lets me enter the password, and when I do, I get
>     this error:
> 
>     File "policyui.py", line 102, in on_button_clicked
>        print get_grub_conf_service()
>      File "policyui.py", line 44, in get_grub_conf_service
>        service_object = dbus.SystemBus().get_object(SERVICE_NAME,
>     OBJECT_PATH)
>      File "/var/lib/python-support/python2.5/dbus/bus.py", line 244, in
>     get_object
>        follow_name_owner_changes=follow_name_owner_changes)
>      File "/var/lib/python-support/python2.5/dbus/proxies.py", line 241, in
>     __init__
>        self._named_service = conn.activate_name_owner(bus_name)
>      File "/var/lib/python-support/python2.5/dbus/bus.py", line 183, in
>     activate_name_owner
>        self.start_service_by_name(bus_name)
>      File "/var/lib/python-support/python2.5/dbus/bus.py", line 281, in
>     start_service_by_name
>        'su', (bus_name, flags)))
>      File "/var/lib/python-support/python2.5/dbus/connection.py", line 607,
>     in call_blocking
>        message, timeout)
>     dbus.exceptions.DBusException:
>     org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with
>     unknown return code 1
> 
> 
>     I have taken as a model both gnome-lirc-properties and grubconf. What
>     I'm trying to do is show a gtk dialog with a button, and when this
>     button is clicked, the authorisation dialog shows up and (in theory) a
>     new file (xorgpol.txt) is created in /etc/X11 . See the attached tarball
>     for further details.
> 
>     I'm using Ubuntu Hardy 32bit and I put the .conf, .service and .policy
>     files (respectively) in:
>     /usr/share/PolicyKit/policy/xkit-mechanism.policy
>     /etc/dbus-1/system.d/org.gnome.XKit.Mechanism.conf
>     /usr/share/dbus-1/system-services/org.gnome.XKit.Mechanism.service
> 
>     I hope you can help me with this problem.
> 
>     Thanks in advance.
> 
>     Regards,
>     -------------- next part --------------
>     A non-text attachment was scrubbed...
>     Name: xkit-policy.tar.gz
>     Type: application/x-compressed-tar
>     Size: 5773 bytes
>     Desc: not available
>     Url :
>     http://lists.freedesktop.org/archives/dbus/attachments/20080619/53c691fc/attachment-0001.bin
> 
>     ------------------------------
> 
>     Message: 2
>     Date: Thu, 19 Jun 2008 09:52:21 +0200
>     From: "@4u" <fd4u at vplace.de <mailto:fd4u at vplace.de>>
>     Subject: Re: D-BUS PHP Binding
>     To: dbus at lists.freedesktop.org <mailto:dbus at lists.freedesktop.org>
>     Message-ID: <485A1035.6000909 at vplace.de
>     <mailto:485A1035.6000909 at vplace.de>>
>     Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
>     Hi,
> 
>     the sources are from an Skype <-> PHP binding not the D-BUS PHP binding
>     (I thought). I'm sorry but if your problem is caused by this extension
>     than this is the wrong mailing list to ask for help. Developers here
>     provided D-BUS [1] itself as well as different bindings between D-BUS
>     and various programming languages like C, Java, QT, .net/mono as well as
>     Perl, Python, Ruby and PHP.
> 
>     Please repost your question to the Skype Developer mailing list or forum
>     or whatever is available for using this Skype extension.
> 
>     Best regards
>     Tobias
> 
>     [1] http://www.freedesktop.org/wiki/Software/dbus
> 
>     Arnel Labarda schrieb:
>      > oh sorry.. heres the source
>      >
>      > On Wed, Jun 18, 2008 at 8:30 PM, @4u <fd4u at vplace.de
>     <mailto:fd4u at vplace.de>
>      > <mailto:fd4u at vplace.de <mailto:fd4u at vplace.de>>> wrote:
>      >
>      >     Hi,
>      >
>      >     Arnel Labarda schrieb:
>      >
>      >         Hi,
>      >
>      >         I attached the php extension for skype source im using
>     right now..
>      >
>      >
>      >     Sorry but there was no attachment ;).
>      >
>      >         it can send messages to my skype contacts
>      >         but it always shows this errors..
>      >
>      >            /Warning: Mitteilung: CHATMESSAGE
>      >            #yoshix86/$josephine.napari;e75bb81ba09f3252
>      >            -=-=-=-=-=-TEST-=-=-=-=-=- in
>      >            /home/aqlx86/www-dev/dev/scheduler/cron/send_skype.php
>     on line 7/
>      >            /ALERT - canary mismatch on efree() - heap overflow
>     detected
>      >            (attacker 'REMOTE_ADDR not set', file
>      >            '/home/aqlx86/www-dev/dev/scheduler/cron/send_skype.php',
>      >         line 7)/
>      >
>      >
>      >     Sounds like a PHP bug which has been (maybe) resolved in PHP 5.3.
>      >     [1][2] Not sure what it means with REMOTE_ADDR and "attacker"
>     thought.
>      >
>      >
>      >         it works when executed in command line but in cron its not
>      >         working it says *could not connect to dbus* i think it needs
>      >         some modification in the source but i dont know much in C
>     language.
>      >
>      >
>      >     Please make sure that you run the cron job as the same user
>     as Skype
>      >     is running. Looks like there is a parameter [3] called
>      >     "--use-system-dbus" to let Skype use the System Bus.
>      >
>      >     I'm not sure what is written in C?!?
>      >
>      >         I trying to create a skype notification so php script check
>      >         mysql db for new logs/events then sends it to my contact
>     thats i
>      >         want it to run in cron but its working T_T
>      >
>      >         thanks,
>      >         [snip]
>      >
>      >
>      >     Best regards
>      >     Tobias
>      >
>      >     [1] http://bugs.php.net/bug.php?id=44710&edit=1
>     <http://bugs.php.net/bug.php?id=44710&edit=1>
>      >     <http://bugs.php.net/bug.php?id=44710&edit=1
>     <http://bugs.php.net/bug.php?id=44710&edit=1>>
>      >     [2] http://bugs.php.net/bug.php?id=44710&edit=1
>     <http://bugs.php.net/bug.php?id=44710&edit=1>
>      >     <http://bugs.php.net/bug.php?id=44710&edit=1
>     <http://bugs.php.net/bug.php?id=44710&edit=1>>
>      >     [3] https://developer.skype.com/Docs/ApiDoc/Skype_API_on_Linux
>      >
>      >
>      >
>      >
>      > --
>      > ----
>      > Registered Linux User #399942
>      > Ubuntu User #14134
> 
> 
> 
>     ------------------------------
> 
>     Message: 3
>     Date: Thu, 19 Jun 2008 16:45:27 +0800
>     From: Huang Peng <phuang at redhat.com <mailto:phuang at redhat.com>>
>     Subject: [PATCH] Add DBusServer wrapper for dbus-python.
>     To: dbus at lists.freedesktop.org <mailto:dbus at lists.freedesktop.org>
>     Message-ID: <1213865127.754.12.camel at localhost.localdomain>
>     Content-Type: text/plain; charset="us-ascii"
> 
>     Hi,
> 
>     I implemented DBusServer wrapper for dbus-python. I need it for my new
>     project. Can anyone test it and commit it to upstreamer's git? Or help
>     me to refine it?
> 
>     * Added DBusServer wrapper.
>     * Created demo code example-server-client.py  and example-server.py.
> 
>     Thanks,
>     Huang Peng
> 
>     -------------- next part --------------
>     A non-text attachment was scrubbed...
>     Name: dbus-python-add-server.patch
>     Type: text/x-patch
>     Size: 32522 bytes
>     Desc: not available
>     Url :
>     http://lists.freedesktop.org/archives/dbus/attachments/20080619/a6abf9ea/attachment.bin
> 
>     ------------------------------
> 
>     _______________________________________________
>     dbus mailing list
>     dbus at lists.freedesktop.org <mailto:dbus at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/dbus
> 
> 
>     End of dbus Digest, Vol 35, Issue 25
>     ************************************
> 
> 
> 
> 
> -- 
> ----
> Registered Linux User #399942
> Ubuntu User #14134
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus


More information about the dbus mailing list