Skip to content

Commit 2dd7b77

Browse files
committed
Add app.setDesktopFileName(PROCESS) for more compatible with gnome wayland
1 parent 340f82c commit 2dd7b77

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

bigbashview/usr/lib/bbv/globaldata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
ICON = os.sep.join((PROGDIR, "img", "bigbashview.svg"))
2525
LOGO = os.sep.join((PROGDIR, "img", "bigbashview.svg"))
2626
TITLE = None
27+
PROCESS = 'BigBashView'
2728
ROOT_FILE = False
2829
ADDRESS = '127.0.0.1'
2930
PORT = 19000

bigbashview/usr/lib/bbv/ui/qt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
from PySide6.QtWebEngineCore import QWebEnginePage, QWebEngineDownloadRequest
4242
from PySide6.QtWebChannel import QWebChannel
4343

44-
from bbv.globaldata import ICON, TITLE
44+
from bbv.globaldata import ICON, TITLE, PROCESS
4545

4646
# Import gettext module for translations
4747
import gettext
@@ -116,6 +116,8 @@ def __init__(self):
116116

117117
# Set window icon and title
118118
self.setWindowIcon(QIcon(ICON))
119+
self.app.setDesktopFileName(PROCESS)
120+
119121
if TITLE:
120122
self.app.setApplicationName(TITLE)
121123
self.setWindowTitle(TITLE)

0 commit comments

Comments
 (0)