Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
QString desktopEntry;
if (lUrl.isValid()) {
desktopEntry = lUrl.fileName().remove(".desktop").toLower();
- if (desktopEntry.startsWith("kde4-")) {
- desktopEntry = desktopEntry.mid(5);
- }
}
if (MediaButtons::self()->isMediaApp(desktopEntry)) {
static QString urlToId(const KUrl &url)
{
- QString desktopEntry = url.fileName();
- if (desktopEntry.startsWith("kde4-")) {
- desktopEntry = desktopEntry.mid(5);
- }
- return QLatin1String("application://") + desktopEntry;
+ return QLatin1String("application://") + url.fileName();
}
Unity * Unity::self()