r274 - in trunk/software/py-odeviced: . etc etc/dbus-1 etc/dbus-1/system.d odeviced odeviced/modules

smartphones-commits at lists.linuxtogo.org smartphones-commits at lists.linuxtogo.org
Mon Apr 28 19:27:21 CEST 2008


Author: mickeylauer
Date: 2008-04-28 19:27:21 +0200 (Mon, 28 Apr 2008)
New Revision: 274

Added:
   trunk/software/py-odeviced/etc/
   trunk/software/py-odeviced/etc/dbus-1/
   trunk/software/py-odeviced/etc/dbus-1/system.d/
   trunk/software/py-odeviced/etc/dbus-1/system.d/odeviced.conf
Modified:
   trunk/software/py-odeviced/odeviced/controller.py
   trunk/software/py-odeviced/odeviced/modules/idlenotifier.py
   trunk/software/py-odeviced/odeviced/modules/kernel26.py
   trunk/software/py-odeviced/odeviced/modules/powercontrol-neo.py
   trunk/software/py-odeviced/setup.py
Log:
odeviced: good bye session bus, here comes the system bus


Added: trunk/software/py-odeviced/etc/dbus-1/system.d/odeviced.conf
===================================================================
--- trunk/software/py-odeviced/etc/dbus-1/system.d/odeviced.conf	                        (rev 0)
+++ trunk/software/py-odeviced/etc/dbus-1/system.d/odeviced.conf	2008-04-28 17:27:21 UTC (rev 274)
@@ -0,0 +1,10 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+	<policy user="root">
+		<allow own="org.freesmartphone.Device"/>
+		<allow send_path="/org/freesmartphone/device"/>
+		<allow send_destination="org.freesmartphone.Device"/>
+		<allow receive_sender="org.freesmartphone.Device"/>
+	</policy>
+</busconfig>

Modified: trunk/software/py-odeviced/odeviced/controller.py
===================================================================
--- trunk/software/py-odeviced/odeviced/controller.py	2008-04-28 16:48:46 UTC (rev 273)
+++ trunk/software/py-odeviced/odeviced/controller.py	2008-04-28 17:27:21 UTC (rev 274)
@@ -48,7 +48,7 @@
         # dbus & glib mainloop
         DBusGMainLoop( set_as_default=True )
         self.mainloop = MainLoop()
-        self.bus = dbus.SessionBus()
+        self.bus = dbus.SystemBus()
         self.busname = dbus.service.BusName( DBUS_INTERFACE_PREFIX, self.bus )
 
         # call me

Modified: trunk/software/py-odeviced/odeviced/modules/idlenotifier.py
===================================================================
--- trunk/software/py-odeviced/odeviced/modules/idlenotifier.py	2008-04-28 16:48:46 UTC (rev 273)
+++ trunk/software/py-odeviced/odeviced/modules/idlenotifier.py	2008-04-28 17:27:21 UTC (rev 274)
@@ -169,4 +169,4 @@
 
 if __name__ == "__main__":
     import dbus
-    bus = dbus.SessionBus()
+    bus = dbus.SystemBus()

Modified: trunk/software/py-odeviced/odeviced/modules/kernel26.py
===================================================================
--- trunk/software/py-odeviced/odeviced/modules/kernel26.py	2008-04-28 16:48:46 UTC (rev 273)
+++ trunk/software/py-odeviced/odeviced/modules/kernel26.py	2008-04-28 17:27:21 UTC (rev 274)
@@ -302,7 +302,7 @@
 
 if __name__ == "__main__":
     import dbus
-    bus = dbus.SessionBus()
+    bus = dbus.SystemBus()
 
     from itertools import count
 

Modified: trunk/software/py-odeviced/odeviced/modules/powercontrol-neo.py
===================================================================
--- trunk/software/py-odeviced/odeviced/modules/powercontrol-neo.py	2008-04-28 16:48:46 UTC (rev 273)
+++ trunk/software/py-odeviced/odeviced/modules/powercontrol-neo.py	2008-04-28 17:27:21 UTC (rev 274)
@@ -188,7 +188,7 @@
 
 if __name__ == "__main__":
     import dbus
-    bus = dbus.SessionBus()
+    bus = dbus.SystemBus()
 
     from itertools import count
 

Modified: trunk/software/py-odeviced/setup.py
===================================================================
--- trunk/software/py-odeviced/setup.py	2008-04-28 16:48:46 UTC (rev 273)
+++ trunk/software/py-odeviced/setup.py	2008-04-28 17:27:21 UTC (rev 274)
@@ -3,11 +3,14 @@
 from Cython.Distutils import build_ext
 setup(
     name = "PyODeviceD",
-    ext_modules=[
+    author = "Michael 'Mickey' Lauer",
+    author_email = "mlauer at vanille-media.de",
+    url = "http://www.freesmartphone.org",
+    ext_modules = [
       Extension("odeviced.modules.wireless", ["odeviced/modules/wireless.pyx"], libraries = [])
       ],
     cmdclass = {'build_ext': build_ext},
     packages = [ "odeviced", "odeviced/modules" ],
     scripts = [ "odeviced/odeviced" ],
-
+    data_files = [ ("/etc/dbus-1/system.d", ["etc/dbus-1/system.d/odeviced.conf"] ) ]
 )




More information about the Smartphones-commits mailing list