From cc6310cbbdfcfc42006615bdd346dccb4dde0c29 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Tue, 31 Jul 2018 15:21:38 +0200 Subject: [PATCH] Allow icons with extension --- src/core/appdir.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/core/appdir.cpp b/src/core/appdir.cpp index 239b94a..5031cb1 100644 --- a/src/core/appdir.cpp +++ b/src/core/appdir.cpp @@ -701,7 +701,13 @@ namespace linuxdeploy { for (const auto& iconPath : foundIconPaths) { ldLog() << LD_DEBUG << "Icon found:" << iconPath << std::endl; - if (iconPath.stem() == iconName) { + const bool matchesFilenameWithExtension = iconPath.filename() == iconName; + + if (iconPath.stem() == iconName || matchesFilenameWithExtension) { + if (matchesFilenameWithExtension) { + ldLog() << LD_WARNING << "Icon= entry filename contains extension" << std::endl; + } + ldLog() << "Deploying icon to AppDir root:" << iconPath << std::endl; if (!d->symlinkFile(iconPath, path())) {