[graphics/krita] libs/ui: Simple-mindedly check whether krita was installed through steam

Halla Rempt null at kde.org
Wed Aug 2 10:28:05 BST 2023


Git commit 51c098ac0dd63b6b85f2dabbcf0bd7282de6424d by Halla Rempt.
Committed on 02/08/2023 at 11:28.
Pushed by rempt into branch 'master'.

Simple-mindedly check whether krita was installed through steam

For now, this is probably good enough: we check whether the
application path contains "steam".

CCMAIL:kimageshop at kde.org
(cherry picked from commit 7bb7b0e093cbe507058cf21ed1f4aeb3baa8f16d)

M  +4    -0    libs/ui/KisApplication.cpp

https://invent.kde.org/graphics/krita/-/commit/51c098ac0dd63b6b85f2dabbcf0bd7282de6424d

diff --git a/libs/ui/KisApplication.cpp b/libs/ui/KisApplication.cpp
index 0b489608665..5395bacc6b3 100644
--- a/libs/ui/KisApplication.cpp
+++ b/libs/ui/KisApplication.cpp
@@ -816,6 +816,10 @@ bool KisApplication::isStoreApplication()
         return true;
     }
 
+    if (applicationDirPath().toLower().contains("steam")) {
+        return true;
+    }
+
 #ifdef Q_OS_WIN
     // This is also true for user-installed MSIX, but that's
     // likely only true in institutional situations, where


More information about the kimageshop mailing list