Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Call QGuiApplication.setDesktopFileName to fix generic icon on GNOME/Wayland #13787

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion spyder/app/mainwindow.py
Expand Up @@ -128,6 +128,7 @@
#==============================================================================
from spyder.utils.qthelpers import qapplication
from spyder.config.base import get_image_path
from spyder.py3compat import PY3
MAIN_APP = qapplication()

if PYQT5:
Expand All @@ -137,6 +138,10 @@

MAIN_APP.setWindowIcon(APP_ICON)

# Required for correct icon on GNOME/Wayland:
musicinmybrain marked this conversation as resolved.
Show resolved Hide resolved
if hasattr(MAIN_APP, 'setDesktopFileName'):
MAIN_APP.setDesktopFileName('spyder3' if PY3 else 'spyder')

#==============================================================================
# Create splash screen out of MainWindow to reduce perceived startup time.
#==============================================================================
Expand Down Expand Up @@ -170,7 +175,7 @@
from spyder.config.utils import IMPORT_EXT, is_anaconda, is_gtk_desktop
from spyder import dependencies
from spyder.py3compat import (is_text_string, to_text_string,
PY3, qbytearray_to_str, configparser as cp)
qbytearray_to_str, configparser as cp)
from spyder.utils import encoding, programs
from spyder.utils import icon_manager as ima
from spyder.utils.programs import is_module_installed
Expand Down