Fix app icon issue in Linux

This commit is contained in:
Deniz Şafak
2025-05-15 21:22:18 +03:00
parent e03336836b
commit 9c44001601
+7
View File
@@ -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_())