From d53cf642f5d1e6a9c6143a2d90b3d8460d9db38d Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Mon, 6 Jan 2025 07:22:34 +0100 Subject: [PATCH] desktop-entry: accept uppercase icon endings --- src/desktop-entry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/desktop-entry.c b/src/desktop-entry.c index 1d84fd4f..c5ed846d 100644 --- a/src/desktop-entry.c +++ b/src/desktop-entry.c @@ -202,11 +202,11 @@ static int process_abs_name(struct icon_ctx *ctx, const char *icon_name) { ctx->path = xstrdup(icon_name); - if (str_endswith(icon_name, ".png")) { + if (str_endswith_ignore_case(icon_name, ".png")) { ctx->format = SFDO_ICON_FILE_FORMAT_PNG; - } else if (str_endswith(icon_name, ".svg")) { + } else if (str_endswith_ignore_case(icon_name, ".svg")) { ctx->format = SFDO_ICON_FILE_FORMAT_SVG; - } else if (str_endswith(icon_name, ".xpm")) { + } else if (str_endswith_ignore_case(icon_name, ".xpm")) { ctx->format = SFDO_ICON_FILE_FORMAT_XPM; } else { goto err;