@@ -29,7 +29,11 @@ LauncherModel::LauncherModel(QObject *parent):
2929{
3030 Q_FOREACH (const QString &entry, m_backend->storedApplications()) {
3131 qDebug() << "adding app" << entry;
32− LauncherItem *item = new LauncherItem(entry, m_backend->displayName(entry), m_backend->icon(entry), this);
32+ LauncherItem *item = new LauncherItem(entry,
33+ m_backend->desktopFile(entry),
34+ m_backend->displayName(entry),
35+ m_backend->icon(entry),
36+ this);
3337 if (m_backend->isPinned(entry)) {
3438 item->setFavorite(true);
3539 } else {
@@ -97,7 +101,7 @@ void LauncherModel::pin(int index)
97101 item->setFavorite(true);
98102 item->setRecent(false);
99103
100− m_backend->setPinned(item->desktopFile(), true);
104+ m_backend->setPinned(item->appId(), true);
101105
102106 QModelIndex modelIndex = this->index(index);
103107 Q_EMIT dataChanged(modelIndex, modelIndex);
@@ -122,7 +126,7 @@ void LauncherModel::storeAppList()
122126 QStringList appIds;
123127 Q_FOREACH(LauncherItem *item, m_list) {
124128 if (item->favorite() || item->recent()) {
125− appIds << item->desktopFile();
129+ appIds << item->appId();
126130 }
127131 }
128132 m_backend->setStoredApplications(appIds);