Skip to content

Commit

Permalink
Also check for Wayland's WAYLAND_DISPLAY to detect a graphical session
Browse files Browse the repository at this point in the history
  • Loading branch information
j-b-m committed Feb 27, 2024
1 parent 299bf23 commit d5f1405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/glaxnimate/producer_glaxnimate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static bool createQApplicationIfNeeded(mlt_service service)
+ QStringLiteral("/plugins"));
#endif
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
if (getenv("DISPLAY") == 0) {
if (getenv("DISPLAY") == 0 && getenv("WAYLAND_DISPLAY") == 0) {
mlt_log_error(
service,
"The MLT Qt module requires a X11 environment.\n"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/qt/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bool createQApplicationIfNeeded(mlt_service service)
+ QStringLiteral("/plugins"));
#endif
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) && !defined(Q_OS_ANDROID)
if (getenv("DISPLAY") == 0) {
if (getenv("DISPLAY") == 0 && getenv("WAYLAND_DISPLAY") == 0) {
mlt_log_error(
service,
"The MLT Qt module requires a X11 environment.\n"
Expand Down

0 comments on commit d5f1405

Please sign in to comment.