Hello community, here is the log from the commit of package kdebluetooth4 for openSUSE:Factory checked in at Fri Sep 4 00:49:29 CEST 2009. -------- --- KDE/kdebluetooth4/kdebluetooth4.changes 2009-08-21 13:38:24.000000000 +0200 +++ kdebluetooth4/kdebluetooth4.changes 2009-09-03 08:21:11.000000000 +0200 @@ -1,0 +2,5 @@ +Thu Sep 3 06:15:50 UTC 2009 - beineri@opensuse.org + +- fix default file receive directory (bnc#512205) + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- r1018677.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kdebluetooth4.spec ++++++ --- /var/tmp/diff_new_pack.JRBiWM/_old 2009-09-04 00:45:29.000000000 +0200 +++ /var/tmp/diff_new_pack.JRBiWM/_new 2009-09-04 00:45:29.000000000 +0200 @@ -25,9 +25,10 @@ Summary: Kdebluetooth4 is the bluetooth framework for KDE4. It adds a lot of bluetooth abilities to the KDE4 desktop. Url: http://kde-apps.org/content/show.php/kdebluetooth4?content=84761 Version: 0.3 -Release: 7 +Release: 8 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: kbluetooth4-%version-svn.tar.bz2 +Patch: r1018677.diff Requires: obex-data-server kdebase4-workspace >= 4.1.96 Requires: bluez >= 4 Requires: obex-data-server >= 0.4 @@ -60,6 +61,7 @@ %prep %setup -q -n kbluetooth4-%version +%patch %build %cmake_kde4 -d build ++++++ r1018677.diff ++++++ Index: src/trayicon.cpp =================================================================== --- src/trayicon.cpp (revision 1018676) +++ src/trayicon.cpp (revision 1018677) @@ -36,6 +36,8 @@ #include <KIconLoader> #include <KIconEffect> #include <KTemporaryFile> +#include <KDirSelectDialog> +#include <KDialog> #include "obexserver/obexserversessionfiletransfer.h" @@ -58,9 +60,6 @@ setIconByName("kbluetooth4"); setToolTip("kbluetooth4", "KBluetooth", "KDE bluetooth framework"); setCategory(KNotificationItem::Hardware); - - QDir dir(QDir::homePath()); - dir.mkdir(".kbluetooth4"); QDBusConnection::systemBus().registerObject(agentPath, kapp); @@ -186,7 +185,15 @@ confGroup = new KConfigGroup(config, "General"); KConfigGroup obexServerConfig(config, "ObexServer"); if(!obexServerConfig.hasKey("savePath")) { - obexServerConfig.writeEntry("savePath", QDir::homePath() + "/.kbluetooth4"); + QString saveUrl; + KDirSelectDialog dirs; + if(dirs.exec() && dirs.url().isValid()) { + saveUrl = dirs.url().path(); + }else{ + saveUrl = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); + kDebug() << "\n\n\n\n\n\n\n\n\n\nsaveUr:" << saveUrl; + } + obexServerConfig.writeEntry("savePath",saveUrl); obexServerConfig.sync(); } if(!obexServerConfig.hasKey("Autostart")) { ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org