rev 7184 - kde-extras/kdebluetooth/trunk/debian

Michael Meskes meskes at alioth.debian.org
Tue Sep 4 11:40:00 UTC 2007


Author: meskes
Date: 2007-09-04 11:40:00 +0000 (Tue, 04 Sep 2007)
New Revision: 7184

Added:
   kde-extras/kdebluetooth/trunk/debian/kblueplugd
   kde-extras/kdebluetooth/trunk/debian/kblueplugd.desktop
Modified:
   kde-extras/kdebluetooth/trunk/debian/changelog
Log:
Forgot the new files.


Modified: kde-extras/kdebluetooth/trunk/debian/changelog
===================================================================
--- kde-extras/kdebluetooth/trunk/debian/changelog	2007-09-04 11:37:09 UTC (rev 7183)
+++ kde-extras/kdebluetooth/trunk/debian/changelog	2007-09-04 11:40:00 UTC (rev 7184)
@@ -15,6 +15,7 @@
   * Added debian/kblueplugd and debian/kblueplugd.desktop script from
     Achim Bohnet <ach at mpe.mpg.de> to start kbluetooth automatically when a bluetooth
     device is plugged and, and stop when no bluetooth device is available.
+  * Made sure kbtobexsrv is in the right package.
   * Finally release first version for Debian.
 
  -- Michael Meskes <meskes at debian.org>  Mon, 03 Sep 2007 14:56:18 +0200

Added: kde-extras/kdebluetooth/trunk/debian/kblueplugd
===================================================================
--- kde-extras/kdebluetooth/trunk/debian/kblueplugd	                        (rev 0)
+++ kde-extras/kdebluetooth/trunk/debian/kblueplugd	2007-09-04 11:40:00 UTC (rev 7184)
@@ -0,0 +1,58 @@
+#!/usr/bin/python
+# -*- coding: UTF-8 -*-
+"""
+Copyright (C) 2007 Achim Bohnet <allee at kubuntu.org>
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+"""
+
+import sys
+from   PyQt4 import QtCore, QtGui
+import dbus
+import dbus.mainloop.qt
+import distutils.spawn
+
+kbtcmd    = [ 'kbluetooth' ]
+quitprogs = [ 'kdebluetooth', 'kbluemon', 'kinputwizard' ]  # FIXME: quit kbluelock too?
+
+
+app = QtGui.QApplication(sys.argv)
+dbus.mainloop.qt.DBusQtMainLoop(set_as_default=True)
+bus = dbus.SystemBus()
+
+try:
+        manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
+except:
+        print "Unable to connect to bluez."
+        exit
+
+if len(manager.ListAdapters()):
+        print "# of devices at startup:", len(manager.ListAdapters())
+        distutils.spawn.spawn(kbtcmd)
+else:
+        print "No BT device found"
+
+
+def slotAdapterAdded(device):
+        print "bt dev added:", device, "# of devices:", len(manager.ListAdapters())
+        distutils.spawn.spawn(kbtcmd)
+
+def slotAdapterRemoved(device):
+        print "bt dev removed:", device, "# num of devices:", len(manager.ListAdapters())
+        if len(manager.ListAdapters()) == 0:
+                for p in quitprogs:
+                        print "exiting:", p, " ..."
+                        try:
+                                distutils.spawn.spawn(['dcop', p, 'MainApplication-Interface', 'quit'])
+                        except:
+                                pass
+
+manager.connect_to_signal("AdapterAdded", slotAdapterAdded)
+manager.connect_to_signal("AdapterRemoved", slotAdapterRemoved)
+
+print "waiting for bt device (un)plug events ..."
+app.exec_()
+#sys.exit(app.exec_())

Added: kde-extras/kdebluetooth/trunk/debian/kblueplugd.desktop
===================================================================
--- kde-extras/kdebluetooth/trunk/debian/kblueplugd.desktop	                        (rev 0)
+++ kde-extras/kdebluetooth/trunk/debian/kblueplugd.desktop	2007-09-04 11:40:00 UTC (rev 7184)
@@ -0,0 +1,42 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=KBluetoothD
+Name[sv]=Kbluetoothd
+Name[ta]=Kபுலுடுத்D
+Name[xx]=xxKBluetoothDxx
+GenericName=KDE Bluetooth Daemon
+GenericName[ar]=مراقب KDE Bluetooth
+GenericName[bg]=Демон за Bluetooth в KDE
+GenericName[br]=Diaoul KDE Bluetooth
+GenericName[bs]=KDE Bluetooth daemon
+GenericName[ca]=Dimoni Bluetooth de KDE
+GenericName[cs]=Bluetooth démon pro KDE
+GenericName[da]=KDE Bluetooth-dæmon
+GenericName[de]=KDE Bluetooth-Daemon
+GenericName[el]=Ο δαίμονας Bluetooth του KDE
+GenericName[es]=Daemon Bluetooth de KDE
+GenericName[et]=KDE Bluetoothi deemon
+GenericName[fr]=Démon KDE Bluetooth
+GenericName[gl]=Servizo Bluetooth de KDE
+GenericName[it]=Demone Bluetooth di KDE
+GenericName[ja]=KDE Bluetooth デーモン
+GenericName[ka]=KDE ბლუთუს დემონი
+GenericName[nl]=KDE Bluetooth-daemon
+GenericName[pa]=KDE ਬਲਿਊਟੁੱਥ ਡਾਈਮੋਨ
+GenericName[pl]=Demon Bluetooth dla KDE
+GenericName[pt]=Serviço Bluetooth do KDE
+GenericName[ru]=Служба KDE Bluetooth
+GenericName[sr]=Bluetooth демон за KDE
+GenericName[sr at Latn]=Bluetooth demon za KDE
+GenericName[sv]=KDE-Blåtandsdemon
+GenericName[ta]=KDE புலுடுத் டேமொன்
+GenericName[tr]=KDE Bluetooth Hizmeti
+GenericName[xx]=xxKDE Bluetooth Daemonxx
+Exec=kblueplugd
+Icon=kdebluetooth
+Type=Application
+DocPath=kdebluetooth/index.html
+Terminal=false
+X-KDE-autostart-after=panel
+X-KDE-StartupNotify=false
+X-KDE-autostart-condition=kbluetoothrc:General:AutoStart:true




More information about the pkg-kde-commits mailing list