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