mambabase.py: set desktop file name to fix taskbar icon with wayland
This commit is contained in:
parent
39fccf6d58
commit
429ca5bed1
@ -2,14 +2,13 @@
|
|||||||
# Copyright (c) 2019-2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
# Copyright (c) 2019-2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
# Release under the terms of the GPL version 3 license
|
# 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 os
|
||||||
|
import subprocess
|
||||||
|
import gettext
|
||||||
|
from pathlib import Path
|
||||||
import distro
|
import distro
|
||||||
|
from PyQt6 import QtGui, QtCore, QtWidgets, uic
|
||||||
|
from PyQt6.QtCore import QLocale, QTranslator
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
gi.require_version('PackageKitGlib', '1.0')
|
gi.require_version('PackageKitGlib', '1.0')
|
||||||
@ -376,6 +375,7 @@ class InstallationPage(QtWidgets.QWizardPage):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
app = QtWidgets.QApplication(sys.argv)
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
|
app.setDesktopFileName("mambabase")
|
||||||
app.setWindowIcon(QtGui.QIcon.fromTheme("mambabase"))
|
app.setWindowIcon(QtGui.QIcon.fromTheme("mambabase"))
|
||||||
# UI translations
|
# UI translations
|
||||||
locale = QLocale.system().name()
|
locale = QLocale.system().name()
|
||||||
|
Loading…
Reference in New Issue
Block a user