Skip to content

Pympress crashes on start on Fedora 38 beta. #283

@cgevans

Description

@cgevans

Describe the bug

On the Fedora 38 beta, running Wayland and using GDK_BACKEND=wayland, Gdk.Display.get_primary_monitor returns None. As a result, ScreenArea.lookup_monitors fails, and pympress fails on startup.

There appear to be several fundamental limitations that prevent screen positioning from functioning properly with Wayland and Gtk (eg, window position information is not actually meaningful). However, changing this code to simply return something for the primary monitor will result in pympress working, with the limitation that some window positioning will not work.

To Reproduce
Steps to reproduce the behavior:

  1. Start pympress, under the conditions noted.

Environment (please complete the following information):

  • OS: Fedora 38 beta
  • Python version: 3.11.2
  • Pympress version: 1.8.0 and 8702f2e
  • Installation method: copr (release) and pip (git)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions