]> git.mdlowis.com Git - proto/labwc.git/commitdiff
desktop-entry: accept uppercase icon endings
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 6 Jan 2025 06:22:34 +0000 (07:22 +0100)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Wed, 8 Jan 2025 15:57:06 +0000 (00:57 +0900)
src/desktop-entry.c

index 1d84fd4f5106146ef521accdc9858b55673f58b8..c5ed846db599981fead846cdb08b581640c1d527 100644 (file)
@@ -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;