From 9c44001601a3affd3170978dca56b4d70cbc4268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Thu, 15 May 2025 21:22:18 +0300 Subject: [PATCH] Fix app icon issue in Linux --- abogen/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/abogen/main.py b/abogen/main.py index b88f2c0..0b7875e 100644 --- a/abogen/main.py +++ b/abogen/main.py @@ -48,6 +48,13 @@ def main(): if icon_path: app.setWindowIcon(QIcon(icon_path)) + # Set the .desktop name on Linux + if platform.system() == "Linux": + try: + app.setDesktopFileName("abogen.desktop") + except AttributeError: + pass + ex = abogen() ex.show() sys.exit(app.exec_())