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()); }