mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 16:05:58 +01:00
Set envvars to encourage apps to use wayland
This commit is contained in:
parent
d000d624f6
commit
469af204f7
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue