From 631f1052b12f9d15b642c2ea822df0f31677c75f Mon Sep 17 00:00:00 2001 From: Artur Duque de Souza Date: Mon, 19 Oct 2009 23:04:42 +0000 Subject: [PATCH] Fix name issue with scripted plasmoids Due to some problems reading from KWallet, just get the name of the machine. Suggested by pinda to solve problem with JS plasmoids being shared without machine names. Reviewed by pinda svn path=/trunk/KDE/kdelibs/; revision=1037774 --- package.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.cpp b/package.cpp index ae2dd04f6..5f33047b3 100644 --- a/package.cpp +++ b/package.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #ifdef QCA2_FOUND #include @@ -573,9 +574,9 @@ void PackagePrivate::publish(AnnouncementMethods methods) service = new PlasmoidService(structure->path()); } - QString resourceName = + QString resourceName = i18nc("%1 is the name of a plasmoid, %2 the name of the machine that plasmoid is published on", - "%1 on %2", structure->metadata().name(), AuthorizationManager::self()->d->myCredentials.name()); + "%1 on %2", structure->metadata().name(), QHostInfo::localHostName()); kDebug() << "publishing package under name " << resourceName; service->d->publish(methods, resourceName, structure->metadata()); }