app: stop setting QT_QPA_PLATFORM=wayland
commitfb4556f83d05df0c81162620a518ff3742299c86
authorDavid Aguilar <davvid@gmail.com>
Sun, 19 Feb 2023 05:24:58 +0000 (18 21:24 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sun, 19 Feb 2023 05:27:32 +0000 (18 21:27 -0800)
tree9e3288ed9e558e4042a244a497da868719a28039
parent021693b0f8c8ba74d8bd921860ca38df777b0d80
app: stop setting QT_QPA_PLATFORM=wayland

Some environments, eg. Ubuntu 22.04, have issues with copy/paste when
QT_QPA_PLATFORM=wayland is configured.

Simplify things by removing our management of this variable.
Document its existence and let things use default values so that things
are better behaved in more scenarios.

This part of the code was originally authored to eliminate a warning
that Qt would emit on older versions of debian/testing:

    Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome.
    Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

That warning was related to https://bugreports.qt.io/browse/QTBUG-68619
and is no longer relevant.

It's better to let Qt use its defaults since users and distribution
may have customizations that are harmed by our attempt to enable the
wayland QPA platform plugin.

Closes: #1295
Reported-by: Jakub Klos <jakub@icewarp.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/app.py
docs/git-cola.rst