diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-30 22:38:07 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-03-30 22:38:07 +0200 |
| commit | 469af204f78d8ea458abee8b27bfeeaf9494124a (patch) | |
| tree | 8ce6c250875a913f05c23ce41ca85924dbe61b94 /src/Compositor.cpp | |
| parent | d000d624f675caffe41658585361d3299dfe69a1 (diff) | |
Set envvars to encourage apps to use wayland
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index d559ea3a..9665ec37 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -148,6 +148,12 @@ void CCompositor::startCompositor() { initAllSignals(); + // Set some env vars so that Firefox is automatically in Wayland mode + // and QT apps too + // electron needs -- flags so we can't really set them here + setenv("QT_QPA_PLATFORM", "wayland", true); + setenv("MOZ_ENABLE_WAYLAND", "1", true); + m_szWLDisplaySocket = wl_display_add_socket_auto(m_sWLDisplay); if (!m_szWLDisplaySocket) { |
