on xenial help sign in
include ~/.local/share/applications/ in .desktop file search path
88403d2Michael Zanetti
plugins/Unity/Launcher/backend/launcherbackend.cpp+3
@@ -264,6 +264,7 @@ QString LauncherBackend::findDesktopFile(const QString &appId) const
264
264
265 QStringList searchDirs;
265 QStringList searchDirs;
266 searchDirs << "/usr/share/applications";
266 searchDirs << "/usr/share/applications";
267+ searchDirs << QDir::homePath() + "/.local/share/applications";
267
268
268// FIXME: Right now the appId can be (or rather is) a full path
269// FIXME: Right now the appId can be (or rather is) a full path
269// to a .desktop file. This will change in the future.
270// to a .desktop file. This will change in the future.
@@ -278,6 +279,8 @@ QString LauncherBackend::findDesktopFile(const QString &appId) const
278 searchDirs << "";
279 searchDirs << "";
279//#endif
280//#endif
280
281
282+ qDebug() << "search dirs are:" << searchDirs;
283+
281 do {
284 do {
282 if (dashPos != -1) {
285 if (dashPos != -1) {
283 helper = helper.replace(dashPos, 1, '/');
286 helper = helper.replace(dashPos, 1, '/');