LEW21 / pydbus

Pythonic DBus library
GNU Lesser General Public License v2.1
327 stars 76 forks source link

Connecting to Screencast service #45

Closed mhsabbagh closed 7 years ago

mhsabbagh commented 7 years ago

Hello.

I am trying to make a proxy to connect to the Screencast service on GNOME Shell.

This is my tiny try but it gives an error:

#!/usr/bin/python
from pydbus import SessionBus

bus = SessionBus()
Shell = bus.get('org.gnome.Shell.Screencast',
                       '/org/gnome/Shell/Screencast')

What is the missing mistake?

mhsabbagh commented 7 years ago

lol. Never mind my stupidity. The correct form was simply:

#!/usr/bin/python

from pydbus import SessionBus

bus = SessionBus()
thing = bus.get('org.gnome.Shell.Screencast')

help(thing)