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

nowplaying: support macos #674

Merged
merged 13 commits into from
Apr 19, 2023
Prev Previous commit
Next Next commit
set QT_EVENT_DISPATCHER_CORE_FOUNDATION=1 by defautl
  • Loading branch information
cosven committed Apr 19, 2023
commit ece632c5b34807bc1185e2cbb1da45d83b609dbd
6 changes: 5 additions & 1 deletion feeluown/entry_points/run_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ def before_start_app(args):
# Run.
#
if AppMode.gui in AppMode(config.MODE):
# Enable auto scale by default so that it can work well with HiDPI display.
if sys.platform == 'win32':
# Enable auto scale by default so that it can work well with HiDPI display.
os.environ.setdefault('QT_AUTO_SCREEN_SCALE_FACTOR', '1')
elif sys.platform == 'darwin':
# Use native event loop on macOS, so that some native service such as
# nowplaying can work.
os.environ.setdefault('QT_EVENT_DISPATCHER_CORE_FOUNDATION', '1')
try:
# HELP: QtWebEngineWidgets must be imported before a
# QCoreApplication instance is created.
Expand Down