From 3504f61c362645f1de8a224abc848f4e817f78d5 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sun, 19 Apr 2026 13:32:38 +0900 Subject: [PATCH] Make finding icon at runtime more robust. By default, the file name (argv[0]) of the application is used to compute its name, which can break if a distribution wraps the binary with a shell script to set some environment variables, as used in Guix for example. * client/main.cpp (main): Explicitly set the desktop file name. Signed-off-by: Maxim Cournoyer --- client/Application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/Application.cpp b/client/Application.cpp index c1fe2a90a..b8627a3e6 100644 --- a/client/Application.cpp +++ b/client/Application.cpp @@ -313,6 +313,7 @@ Application::Application( int &argc, char **argv ) { setApplicationName(QStringLiteral("qdigidoc4")); setApplicationVersion(QStringLiteral(VERSION_STR)); + setDesktopFileName("ee.ria.qdigidoc4"); setOrganizationDomain(QStringLiteral("ria.ee")); setOrganizationName(QStringLiteral("RIA")); setWindowIcon(QIcon(QStringLiteral(":/images/Icon.svg")));