We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8ca94e commit 5bc0cbbCopy full SHA for 5bc0cbb
1 file changed
src/dock/toplevel-icon.cpp
@@ -273,6 +273,19 @@ 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) break;
286
+ }
287
288
+
289
if (app_info) // success
290
{
291
return app_info->get_icon();
0 commit comments