From 93c6d6ad6123e84b2fb6f2301ff4720497dfd456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sat, 30 Aug 2025 06:49:39 +0200 Subject: [PATCH] Fix document icons failing to install on freedesktop systems Typo in 21b533ae4764; I KNEW I was going to get those initializers wrong. --- src/common/platform/Linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/platform/Linux.cpp b/src/common/platform/Linux.cpp index dc732a452..18b3fac3d 100644 --- a/src/common/platform/Linux.cpp +++ b/src/common/platform/Linux.cpp @@ -142,7 +142,7 @@ bool Install() ByteString file = ByteString::Build(APPVENDOR, "-", APPID, ".desktop"); ok = ok && Platform::WriteFile(desktopData, file); ok = ok && Run("installing desktop file", { "xdg-desktop-menu", "install", file }, true); - ok = ok && Run("associating save MIME type with desktop file", { "xdg-mime", "default", file, "application/vnd.", APPVENDOR, ".save" }, true); + ok = ok && Run("associating save MIME type with desktop file", { "xdg-mime", "default", file, ByteString::Build("application/vnd.", APPVENDOR, ".save") }, true); ok = ok && Run("associating ptsave URL scheme with desktop file", { "xdg-mime", "default", file, "x-scheme-handler/ptsave" }, true); Platform::RemoveFile(file); } @@ -157,7 +157,7 @@ bool Install() { ByteString file = ByteString(APPVENDOR) + "-cps.png"; ok = ok && Platform::WriteFile(icon_cps_png.AsCharSpan(), file); - ok = ok && Run("providing file icons for saves and stamps", { "xdg-icon-resource", "install", "--noupdate", "--context", "mimetypes", "--size", "64", file, "application-vnd.", APPVENDOR, ".save" }, true); + ok = ok && Run("providing file icons for saves and stamps", { "xdg-icon-resource", "install", "--noupdate", "--context", "mimetypes", "--size", "64", file, ByteString::Build("application-vnd.", APPVENDOR, ".save") }, true); Platform::RemoveFile(file); } if (ok)