Skip to content

Commit e6f281e

Browse files
dkondorammen99
authored andcommitted
dock: more cases when matching apps
handle when the .desktop file start with a capital letter; fixes evince (org.gnome.Evince) and devhelp (org.gnome.Devhelp) on Ubuntu 24.04
1 parent 7b2bbb3 commit e6f281e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/dock/toplevel-icon.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ Icon get_from_desktop_app_info(std::string app_id)
283283
std::vector<std::string> app_id_variations = {
284284
app_id,
285285
tolower(app_id),
286+
tolower(app_id),
286287
};
288+
// e.g. org.gnome.Evince.desktop
289+
app_id_variations[2][0] = std::toupper(app_id_variations[2][0]);
287290

288291
std::vector<std::string> suffixes = {
289292
"",

0 commit comments

Comments
 (0)