mambabase.py: set desktop file name to fix taskbar icon with wayland

This commit is contained in:
Silvan Calarco 2024-08-06 16:34:45 +02:00
parent 39fccf6d58
commit 429ca5bed1

View File

@ -2,14 +2,13 @@
# Copyright (c) 2019-2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Release under the terms of the GPL version 3 license
from PyQt6 import QtGui, QtCore, QtWidgets, uic
from PyQt6.QtCore import pyqtProperty
from PyQt6.QtCore import QLocale, QTranslator
from pathlib import Path
import gettext
import subprocess
import os
import subprocess
import gettext
from pathlib import Path
import distro
from PyQt6 import QtGui, QtCore, QtWidgets, uic
from PyQt6.QtCore import QLocale, QTranslator
import gi
gi.require_version('PackageKitGlib', '1.0')
@ -376,6 +375,7 @@ class InstallationPage(QtWidgets.QWizardPage):
if __name__ == '__main__':
import sys
app = QtWidgets.QApplication(sys.argv)
app.setDesktopFileName("mambabase")
app.setWindowIcon(QtGui.QIcon.fromTheme("mambabase"))
# UI translations
locale = QLocale.system().name()