Skip to content

Commit

Permalink
dock: more cases when matching apps
Browse files Browse the repository at this point in the history
handle when the .desktop file start with a capital letter; fixes evince (org.gnome.Evince) and devhelp (org.gnome.Devhelp) on Ubuntu 24.04
  • Loading branch information
dkondor committed Sep 21, 2024
1 parent c3089d7 commit d8ca94e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dock/toplevel-icon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ Icon get_from_desktop_app_info(std::string app_id)
std::vector<std::string> app_id_variations = {
app_id,
tolower(app_id),
tolower(app_id),
};
// e.g. org.gnome.Evince.desktop
app_id_variations[2][0] = std::toupper(app_id_variations[2][0]);

std::vector<std::string> suffixes = {
"",
Expand Down

0 comments on commit d8ca94e

Please sign in to comment.