We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ca94e commit 7680279Copy full SHA for 7680279
src/dock/toplevel-icon.cpp
@@ -273,6 +273,22 @@ Icon get_from_desktop_app_info(std::string app_id)
273
}
274
275
276
+ if (!app_info)
277
+ {
278
+ // special treatment for snap apps
279
+ std::string prefix = "/var/lib/snapd/desktop/applications/";
280
+ auto& id = app_id_variations[1]; // seems to be lower case
281
+ for (auto& suffix : suffixes)
282
283
+ app_info = Gio::DesktopAppInfo::create_from_filename(
284
+ prefix + id + "_" + id + suffix);
285
+ if (app_info)
286
287
+ break;
288
+ }
289
290
291
+
292
if (app_info) // success
293
{
294
return app_info->get_icon();
0 commit comments