--- kdebluetooth-0.4~rc1.orig/debian/copyright +++ kdebluetooth-0.4~rc1/debian/copyright @@ -0,0 +1,76 @@ +This package was debianized by Anthony Mercatante +on Mon, 30 Jun 2007 20:28:22 +0100. + +It was downloaded from http://bluetooth.kmobiletools.org + +Upstream Authors: + Mattia Merzi + khciconfig + kbluelock + + Fred Schaettgen + kbluetoothd + kbtobexsrv + kio_sdp + kio_bluetooth + kbtserialchat + khandsfree + kbemusedsrv + likbluetooth + kioclient + kbtsearch + + Simone Gotti + kbtobexclient + IrMCSync Konnector + libkobex + Service Discovery + Autotools Scripts + + Alex Ibrado + kbemusedsrv + + Mathias Froehlich + libqobex + kio_obex + + Daniel Gollub + BlueZ D-Bus API rewrite + + Tom Patzig + kbluemon + kbluelock (rewrite) + kinputwizard + +Copyright holders: + Copyright 2003 by Simone Gotti + Copyright 2003 Sebastian Trueg + Copyright 1998-2003 Sebastian Trueg + Copyright 2007 Tom Patzig + Copyright 2007 Novell, Inc + Copyright 2006 Daniel Gollub + Copyright 2004 Fred Schaettgen + Copyright 2006 Marcin Przylucki + Copyright 2006 Kevin Ottens + Copyright 2006 Marco Gulino + +License: +All the software: + + This package 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. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- kdebluetooth-0.4~rc1.orig/debian/control +++ kdebluetooth-0.4~rc1/debian/control @@ -0,0 +1,20 @@ +Source: kdebluetooth +Section: kde +Priority: optional +Maintainer: Kubuntu Developers +XSBC-Original-Maintainer: Debian KDE Extras Team +Uploaders: Michael Meskes , Achim Bohnet , Mark Purcell +Build-Depends: debhelper (>= 6), cmake, cdbs, kdelibs5-dev, kdebase-workspace-dev, quilt, + libknotificationitem-dev +Standards-Version: 3.7.3 + +Package: kdebluetooth +Architecture: any +Depends: ${shlibs:Depends}, bluetooth, python-qt4-dbus, python-qt4, obex-data-server +Suggests: python +Description: KDE Bluetooth Framework + The KDE Bluetooth Framework provides several easy to use + tools to be used with Bluetooth devices. + . + Homepage: http://bluetooth.kmobiletools.org/ + --- kdebluetooth-0.4~rc1.orig/debian/compat +++ kdebluetooth-0.4~rc1/debian/compat @@ -0,0 +1 @@ +6 --- kdebluetooth-0.4~rc1.orig/debian/rules +++ kdebluetooth-0.4~rc1/debian/rules @@ -0,0 +1,11 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/pkg-kde-tools/makefiles/1/cdbs/kde.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +export KUBUNTU_DESKTOP_POT=playground-network + +install/kdebluetooth:: + dh_installdirs usr/share/autostart usr/bin + install -m755 debian/kblueplugd debian/kdebluetooth/usr/bin/ + install -m644 debian/kblueplugd.desktop debian/kdebluetooth/usr/share/autostart/ --- kdebluetooth-0.4~rc1.orig/debian/kblueplugd.desktop +++ kdebluetooth-0.4~rc1/debian/kblueplugd.desktop @@ -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@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 --- kdebluetooth-0.4~rc1.orig/debian/changelog +++ kdebluetooth-0.4~rc1/debian/changelog @@ -0,0 +1,466 @@ +kdebluetooth (1:0.4~rc1-0ubuntu2) karmic; urgency=low + + * Add kubuntu_02_fix_clipboard_send_crash.diff from upstream to fix the + crash encountered sending the clipboard contents to a bluetooth device. + Can be removed next upstream release (LP: #457255, B.K.O. #211357) + + -- Jonathan Thomas Thu, 22 Oct 2009 14:40:29 -0400 + +kdebluetooth (1:0.4~rc1-0ubuntu1) karmic; urgency=low + + * New upstream release: + - Fixes device manager to make it simply usable + * Added kubuntu_01_document_path.diff: + - Avoids nasty prompt at first run and instead set the default + download path to "XDG Documents" dir + + -- Anthony Mercatante Tue, 29 Sep 2009 09:38:35 +0200 + +kdebluetooth (1:0.4~beta1b-0ubuntu1) karmic; urgency=low + + * New upstream beta release: + - basically a bugfix release + * Fixed kblueplugd for binary name + + -- Anthony Mercatante Fri, 18 Sep 2009 22:54:49 +0200 + +kdebluetooth (1:0.3-0ubuntu6) karmic; urgency=low + + * Add CDBS debhelper.mk to debian/rules to fix FTBFS + + -- Scott Kitterman Thu, 30 Jul 2009 08:32:38 -0400 + +kdebluetooth (1:0.3-0ubuntu5) karmic; urgency=low + + * change to using kde.mk from pkg-kde-tools + + -- Jonathan Riddell Wed, 29 Jul 2009 18:01:42 +0100 + +kdebluetooth (1:0.3-0ubuntu4) jaunty; urgency=low + + * Add Message.sh files for translations + * Add KUBUNTU_DESKTOP_POT + * Don't use dcop in kblueplugd + + -- Jonathan Riddell Wed, 08 Apr 2009 15:51:13 +0100 + +kdebluetooth (1:0.3-0ubuntu3) jaunty; urgency=low + + * Add kubuntu_01_save_to_home.diff to save files in home-dir. (LP: #334136) + + -- Andreas Wenning Sat, 28 Mar 2009 14:09:28 +0100 + +kdebluetooth (1:0.3-0ubuntu2) jaunty; urgency=low + + * Add obex-data-server to depends (LP: #324010) + + -- Scott Kitterman Sun, 01 Feb 2009 13:00:35 -0500 + +kdebluetooth (1:0.3-0ubuntu1) jaunty; urgency=low + + * New upstream release + + -- Anthony Mercatante Mon, 19 Jan 2009 17:04:06 +0100 + +kdebluetooth (1:0.2-0ubuntu2) intrepid; urgency=low + + * debian/kblueplugd: + - Update to 4.x API (LP: #279983) + * debian/control: + - Depend on bluetooth instead of the transitional bluez-utils + package (LP: #279958) + + -- Mario Limonciello Thu, 09 Oct 2008 14:18:12 -0500 + +kdebluetooth (1:0.2-0ubuntu1) intrepid; urgency=low + + * New upstream release + + -- Anthony Mercatante Wed, 03 Sep 2008 15:34:52 +0200 + +kdebluetooth (1:0.1-0ubuntu1) intrepid; urgency=low + + * New upstream release + + -- Anthony Mercatante Thu, 07 Aug 2008 09:49:47 +0200 + +kdebluetooth (1.0~beta9~r769275-0ubuntu1) hardy; urgency=low + + * New upstream release. + * Fixed kblueplugd, using QcoreApplication instead of + QApplication + + -- Anthony Mercatante Fri, 01 Feb 2008 01:21:58 +0100 + +kdebluetooth (1.0~beta9~r734866-0ubuntu6) hardy; urgency=low + + * Fixed kubuntu_08_load_kdebluetooth_catalogue.patch so that + the KCM module loads the good Catalogue too. + + -- Anthony Mercatante Fri, 16 Nov 2007 18:28:38 +0100 + +kdebluetooth (1.0~beta9~r734866-0ubuntu5) hardy; urgency=low + + * Added kubuntu_08_load_kdebluetooth_catalogue.patch: + - Some components are loading libkbluetooth catalogue, which + doesn't exist + * Added kubuntu_09_french_i18n.patch + - French translation + + -- Anthony Mercatante Fri, 16 Nov 2007 16:01:59 +0100 + +kdebluetooth (1.0~beta9~r734866-0ubuntu4) hardy; urgency=low + + * Fixed kubuntu_02_desktop_files.patch, no need for entry in the Kmenu + + -- Anthony Mercatante Fri, 16 Nov 2007 11:09:35 +0100 + +kdebluetooth (1.0~beta9~r734866-0ubuntu3) hardy; urgency=low + + * Fixed packaging, libkbluetooth0.install installs kbtobexsrv. + Closes LP: #146145, #157746, #155417 + + -- Anthony Mercatante Fri, 16 Nov 2007 10:30:57 +0100 + +kdebluetooth (1.0~beta9~r734866-0ubuntu2) hardy; urgency=low + + * Reuploaded as the buildd seems to be fixed + + -- Anthony Mercatante Mon, 12 Nov 2007 14:10:49 +0100 + +kdebluetooth (1.0~beta9~r734866-0ubuntu1) hardy; urgency=low + + * New svn snapshot + + -- Anthony Mercatante Sat, 10 Nov 2007 10:26:52 +0100 + +kdebluetooth (1.0~beta8-0ubuntu7) hardy; urgency=low + + * New svn snapshot + * Removed debian/patches/kubuntu_08_rename_devices.patch, merged + upstream + + -- Anthony Mercatante Fri, 26 Oct 2007 16:20:33 +0200 + +kdebluetooth (1.0~beta8-0ubuntu5) gutsy; urgency=low + + * Fixed kblueplugd, previous upload contained 'testing' code that + shouldn't be there... + + -- Anthony Mercatante Wed, 03 Oct 2007 12:01:02 +0200 + +kdebluetooth (1.0~beta8-0ubuntu4) gutsy; urgency=low + + * Added conflicts/replaces qobex, qobex-dev on libkbluetooth. (LP: #146377) + + -- Sarah Hobbs Sat, 29 Sep 2007 18:28:39 +1000 + +kdebluetooth (1.0~beta8-0ubuntu3) gutsy; urgency=low + + * Fixed kblueplugd, quits correctly when connection to dbus is + impossible. Avoids kblueplugd to crash when bluetooth services + are not started. Fixes LP: #136307 + + -- Anthony Mercatante Tue, 25 Sep 2007 22:24:16 +0200 + +kdebluetooth (1.0~beta8-0ubuntu2) gutsy; urgency=low + + * Fixed debian/control, kdebluetooth depends on python-qt4 + Fixes LP: #135893 + + -- Anthony Mercatante Mon, 24 Sep 2007 16:36:37 +0200 + +kdebluetooth (1.0~beta8-0ubuntu1) gutsy; urgency=low + + * New upstream release + + -- Stefan Skotte Mon, 24 Sep 2007 11:34:40 +0200 + +kdebluetooth (1.0~beta7-0ubuntu1) gutsy; urgency=low + + * New upstream release + + -- Anthony Mercatante Sat, 15 Sep 2007 13:04:30 +0200 + +kdebluetooth (1.0~beta6~r709825-0ubuntu2) gutsy; urgency=low + + * Fixed kblueplugd, no session restore + + -- Anthony Mercatante Tue, 11 Sep 2007 13:39:08 +0200 + +kdebluetooth (1.0~beta6~r709825-0ubuntu1) gutsy; urgency=low + + * New SVN snapshot + + -- Anthony Mercatante Sat, 08 Sep 2007 12:44:11 +0200 + +kdebluetooth (1.0~beta6~r709359-0ubuntu1) gutsy; urgency=low + + * New SVN snapshot + + -- Anthony Mercatante Fri, 07 Sep 2007 12:34:41 +0200 + +kdebluetooth (1.0~beta6~r707240-0ubuntu1) gutsy; urgency=low + + * Update kblueplugd with PyQt 4 version, and change kdebluetooth + depends to python-qt4-dbus + + -- Jonathan Riddell Sat, 01 Sep 2007 23:22:27 +0100 + +kdebluetooth (1.0~beta6~r707240) gutsy; urgency=low + + * New SVN snapshot + + -- Anthony Mercatante Sat, 01 Sep 2007 13:05:05 +0200 + +kdebluetooth (1.0~beta6~r706975-0ubuntu2) gutsy; urgency=low + + * Added python-dbus dep because of kblueplug + + -- Anthony Mercatante Sat, 01 Sep 2007 00:06:49 +0200 + +kdebluetooth (1.0~beta6~r706975-0ubuntu1) gutsy; urgency=low + + * New SVN snapshot + * Added kubuntu_07_fix_header_include.patch, fixes build issue due + to missing header + + -- Anthony Mercatante Fri, 31 Aug 2007 13:23:01 +0200 + +kdebluetooth (1.0~beta6~r706807-0ubuntu1) gutsy; urgency=low + + * New SVN snapshot + * Fixed kubuntu_06_no_autostart.patch, don't just don't install autostart + file, but let the yes/no question on quit + * Removed kubuntu_07_disable_icon_management.desktop, no in svn + + -- Anthony Mercatante Fri, 31 Aug 2007 12:03:41 +0200 + +kdebluetooth (1.0~beta6~r706303-0ubuntu1) gutsy; urgency=low + + * New SVN snapshot + * Added debian/kbluetoothd and debian/kbluetoothd.desktop script from + Achim Bonner, starts kbluetooth automatically when a bluetooth + device is plugged and, and stops it when no bluetooth device is + available. + * added kubuntu_06_no_autostart.patch, to let kbluetoothd deal with + bluetooth autostart + * added kubuntu_07_disable_icon_management.patch, removed option to + hide the icon, as it is buggy and the icon now only appears when a + device is available + + -- Anthony Mercatante Wed, 29 Aug 2007 16:50:43 +0200 + +kdebluetooth (1.0~beta6~r706091-0ubuntu1) gutsy; urgency=low + + * New SVN snapshot + + -- Anthony Mercatante Wed, 29 Aug 2007 14:06:53 +0200 + +kdebluetooth (1.0~beta6~r705625-0ubuntu2) gutsy; urgency=low + + * Added back patch to fix segault for the input devices tool + + -- Anthony Mercatante Wed, 29 Aug 2007 14:02:19 +0200 + +kdebluetooth (1.0~beta6~r705625-0ubuntu1) gutsy; urgency=low + + * New SVN snapshot + + -- Anthony Mercatante Tue, 28 Aug 2007 09:49:58 +0200 + +kdebluetooth (1.0~beta6~r702320-0ubuntu1) gutsy; urgency=low + + * Sync with svn + + -- Anthony Mercatante Mon, 20 Aug 2007 13:55:39 +0200 + +kdebluetooth (1.0~beta6~r698638-0ubuntu1) gutsy; urgency=low + + * New upstream release + * Modify Maintainer value to match the DebianMaintainerField + specification. + + -- Richard A. Johnson Mon, 13 Aug 2007 10:06:51 -0500 + +kdebluetooth (1.0~beta5~r695881-0ubuntu1) gutsy; urgency=low + + * Added kubuntu_01_kdepot.patch: + - extract strings to rosetta + * Added kubuntu_02_desktop_files.patch: + - no need for several entries in K menu + * Added kubuntu_03_obex2_push.patch: + - fixes object push uploads, allows more than 16kB + Patch by Stefan Skotte + * Added kubuntu_04_obex2_make_up_work.diff: + - fixes "UP" button usage when browsing via obex protocol + Patch by Frode M. Døving + + -- Anthony Mercatante Fri, 03 Aug 2007 09:26:22 +0100 + +kdebluetooth (0.99+1.0beta2-7) unstable; urgency=low + + * Only create link in postinst if bluetooth device was found and + overwrite link that is not working, closes: #426458 + + -- Michael Meskes Tue, 29 May 2007 11:59:09 +0200 + +kdebluetooth (0.99+1.0beta2-6) unstable; urgency=low + + * Changed build dependency to libbluetooth-dev. + + -- Michael Meskes Mon, 28 May 2007 19:13:13 +0200 + +kdebluetooth (0.99+1.0beta2-5) unstable; urgency=low + + * Made package built twice in a row, closes: #424451 + * Changed source to compile with GCC 4.3, closes: #417272 + * Added compatibility link for paired devices, closes: #416465 + * Removed irmcsync building because kdepim moved to opensync. + + -- Michael Meskes Wed, 23 May 2007 00:50:21 +0200 + +kdebluetooth (0.99+1.0beta2-4) unstable; urgency=low + + * Use correct init.d script name, closes: #416053 + + -- Michael Meskes Sat, 24 Mar 2007 14:07:27 +0100 + +kdebluetooth (0.99+1.0beta2-3) unstable; urgency=low + + * Added dependancy to bluez-utils, closes: #409631 + + -- Michael Meskes Mon, 5 Feb 2007 11:48:43 +0100 + +kdebluetooth (0.99+1.0beta2-2) unstable; urgency=low + + * Added AM_MAINTAINER_MODE again to fix the time-stamp skew problems, closes: #397621 + + -- Michael Meskes Thu, 9 Nov 2006 15:37:01 +0100 + +kdebluetooth (0.99+1.0beta2-1) unstable; urgency=low + + * New upstream version that fixes kbluepin. + * Added missing docs from beta1. + * Added patched passkey-agent and a wrapper around kbluetoothd that starts + passkey-agent, closes: #383877 + + -- Michael Meskes Tue, 7 Nov 2006 16:19:58 +0100 + +kdebluetooth (0.99+1.0beta1-13) unstable; urgency=low + + * Fixed segfault on click in kbtobexsrv window, closes: #392265 + * Made kdebluetooth compile with libbluetooth2 >= 3.7-1 + * Change Build-Depends to list libbluetooth2-dev (>= 3.7-1) + * Removed old libsdp2-dev from Build-Depends. + + -- Michael Meskes Wed, 11 Oct 2006 19:55:31 +0200 + +kdebluetooth (0.99+1.0beta1-12) unstable; urgency=low + + * Recompiled for libbluetooth transition, closes: #376884, #376975 + + -- Michael Meskes Sat, 8 Jul 2006 12:05:24 +0200 + +kdebluetooth (0.99+1.0beta1-11) unstable; urgency=low + + * Patched qserialdevice.cpp to compile correctly with GCC 4.1 + + -- Michael Meskes Tue, 20 Jun 2006 11:24:09 +0200 + + +kdebluetooth (0.99+1.0beta1-10) unstable; urgency=low + + * Added AM_MAINTAINER_MODE to fix the time-stamp skew problems, closes: #365113 + + -- Michael Meskes Fri, 28 Apr 2006 14:19:39 +0200 + + +kdebluetooth (0.99+1.0beta1-9) unstable; urgency=low + + * Remade all configure et al. files which hopefully closes: #364658 + + -- Michael Meskes Wed, 26 Apr 2006 14:04:21 +0200 + +kdebluetooth (0.99+1.0beta1-8) unstable; urgency=low + + * Recompiled for openobex transition, closes: #358275 + * Added patch from KDE bugtracking to fix browsing, closes: #359153 + + -- Michael Meskes Sun, 16 Apr 2006 11:51:00 +0200 + +kdebluetooth (0.99+1.0beta1-7) unstable; urgency=low + + * Fixed source to compile with G++ 4.1, closes: #356155 + + -- Michael Meskes Thu, 16 Mar 2006 09:30:55 +0100 + +kdebluetooth (0.99+1.0beta1-6) unstable; urgency=low + + * Package qobex now provides "flexmem" + + -- Michael Meskes Tue, 22 Nov 2005 22:03:02 +0100 + +kdebluetooth (0.99+1.0beta1-5) unstable; urgency=low + + * Moved qobex back to section "net", repairing the accidental move from -4 + + -- Michael Meskes Mon, 12 Sep 2005 14:46:15 +0200 + +kdebluetooth (0.99+1.0beta1-4) unstable; urgency=low + + * Moved to section "kde" + * Changed description of qobex to give a more information + + -- Michael Meskes Thu, 8 Sep 2005 14:30:16 +0200 + +kdebluetooth (0.99+1.0beta1-3) unstable; urgency=low + + * Recompiled against KDE 3.4.2, closes: #326787 + * Uploaded to unstable + * Disabled support for xmms, closes: #326218 + + -- Michael Meskes Tue, 6 Sep 2005 13:09:10 +0200 + +kdebluetooth (0.99+1.0beta1-2) experimental; urgency=low + + * Put irmcsync into its own package as done in the (K)Ubuntu package by Simone + Gotti + + -- Michael Meskes Thu, 30 Jun 2005 15:16:38 +0200 + +kdebluetooth (0.99+1.0beta1-1) experimental; urgency=low + + * Initial Debian Release, closes: #308319, #293450 + + -- Michael Meskes Mon, 13 Jun 2005 15:43:49 +0200 + +kdebluetooth (0.0.cvs.1-1.040203) unstable; urgency=low + + * control: make lintean + * rules: use --enable-final again after fixing am files + * rules: add CVS_BUILD hack to enable/disalbe full debug build + (argl, blow up the deb size by ~ factor of 10 to 7 GB) + + -- Achim Bohnet Wed, 4 Feb 2004 01:54:39 +0100 + +kdebluetooth (0.0.cvs.1-0.woody.ach.040122) unstable; urgency=low + + * add kdelibs4-dev to build-deps (much not to add here...) + * build 0.0.cvs.1.orig.tar file from cvs co + make -f Makefile.cvs + * remove empty NEWS from docs + * remove unused usr/sbin from dirs + * added TODO for pkging + * use same email in README as in control + * clean up config-stamp + * use debiandir settings for configure + * use --disabled-final for now + + -- Achim Bohnet Thu, 29 Jan 2004 01:39:21 +0100 + +kdebluetooth (0.0-1) unstable; urgency=low + + * Initial Release. + + -- Fred Schaettgen Fri, 19 Sep 2003 18:47:31 +0200 + --- kdebluetooth-0.4~rc1.orig/debian/kblueplugd +++ kdebluetooth-0.4~rc1/debian/kblueplugd @@ -0,0 +1,59 @@ +#!/usr/bin/python +# -*- coding: UTF-8 -*- +""" +Copyright (C) 2007 Achim Bohnet + +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, Qt +import dbus +import dbus.mainloop.qt +import distutils.spawn + +kbtcmd = [ 'kbluetooth' ] +quitprogs = [ 'kbluetooth' ] + + +app = Qt.QCoreApplication(sys.argv) + +dbus.mainloop.qt.DBusQtMainLoop(set_as_default=True) +bus = dbus.SystemBus() + +try: + manager = dbus.Interface(bus.get_object('org.bluez', '/'), 'org.bluez.Manager') +except: + print "Unable to connect to bluez." + sys.exit(1) + +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(['killall', p]) + except: + pass + +manager.connect_to_signal("AdapterAdded", slotAdapterAdded) +manager.connect_to_signal("AdapterRemoved", slotAdapterRemoved) + +print "waiting for bt device (un)plug events ..." + +app.exec_() --- kdebluetooth-0.4~rc1.orig/debian/patches/series +++ kdebluetooth-0.4~rc1/debian/patches/series @@ -0,0 +1,2 @@ +kubuntu_01_document_path.diff +kubuntu_02_fix_clipboard_send_crash.diff --- kdebluetooth-0.4~rc1.orig/debian/patches/kubuntu_02_fix_clipboard_send_crash.diff +++ kdebluetooth-0.4~rc1/debian/patches/kubuntu_02_fix_clipboard_send_crash.diff @@ -0,0 +1,16 @@ +Index: kdebluetooth-0.4~rc1/src/trayicon.cpp +=================================================================== +--- kdebluetooth-0.4~rc1.orig/src/trayicon.cpp 2009-10-22 14:38:06.000000000 -0400 ++++ kdebluetooth-0.4~rc1/src/trayicon.cpp 2009-10-22 14:39:13.000000000 -0400 +@@ -463,10 +463,9 @@ + if(tempFile.open()) { + stream << QApplication::clipboard()->text(); + kDebug() << "Clipboard file: " << tempFile.fileName(); +- fileToSend = tempFile.fileName(); ++ filesToSend = QStringList(tempFile.fileName()); + tempFile.close(); + } +- slotSendFile(address); + } + + void KBlueTray::obexSessionReady() --- kdebluetooth-0.4~rc1.orig/debian/patches/kubuntu_01_document_path.diff +++ kdebluetooth-0.4~rc1/debian/patches/kubuntu_01_document_path.diff @@ -0,0 +1,26 @@ +diff -Nur -x '*.orig' -x '*~' kdebluetooth-0.4~beta1b/src/trayicon.cpp kdebluetooth-0.4~beta1b.new/src/trayicon.cpp +--- kdebluetooth-0.4~beta1b/src/trayicon.cpp 2009-09-18 03:14:27.000000000 +0200 ++++ kdebluetooth-0.4~beta1b.new/src/trayicon.cpp 2009-09-29 09:37:27.177320178 +0200 +@@ -55,6 +55,7 @@ + #include + #include + #include ++#include + + using KWallet::Wallet; + KBlueTray::KBlueTray(const QString& path, QObject* parent) : KNotificationItem(parent), agentPath(path) +@@ -199,13 +200,7 @@ + confGroup = new KConfigGroup(config, "General"); + KConfigGroup obexServerConfig(config, "ObexServer"); + if(!obexServerConfig.hasKey("savePath")) { +- QString saveUrl; +- KDirSelectDialog dirs; +- if(dirs.exec() && dirs.url().isValid()) { +- saveUrl = dirs.url().path(); +- }else{ +- saveUrl = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); +- } ++ QString saveUrl=KGlobalSettings::documentPath(); + obexServerConfig.writeEntry("savePath",saveUrl); + obexServerConfig.sync(); + }