on xenial help sign in
include ~/.local/share/applications/ in .desktop file search path
commit88403d241d26cf0cfc8fe4513508206752f42b55 authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 4 Sep 2013, 20:11 (13 years ago) parent9185530
1 file changed+3
plugins/Unity/Launcher/backend/launcherbackend.cpp+3
plugins/Unity/Launcher/backend/launcherbackend.cpp+3
@@ -264,6 +264,7 @@ QString LauncherBackend::findDesktopFile(const QString &appId) const
264264
265265 QStringList searchDirs;
266266 searchDirs << "/usr/share/applications";
267+ searchDirs << QDir::homePath() + "/.local/share/applications";
267268
268269// FIXME: Right now the appId can be (or rather is) a full path
269270// to a .desktop file. This will change in the future.
@@ -278,6 +279,8 @@ QString LauncherBackend::findDesktopFile(const QString &appId) const
278279 searchDirs << "";
279280//#endif
280281
282+ qDebug() << "search dirs are:" << searchDirs;
283+
281284 do {
282285 if (dashPos != -1) {
283286 helper = helper.replace(dashPos, 1, '/');