aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNarice <[email protected]>2022-11-19 20:37:16 +0100
committerGitHub <[email protected]>2022-11-19 19:37:16 +0000
commitc03e4c36b0796e5ab49768e28183a4aecb257bb5 (patch)
treed73857243a30b1a0d74ecd1a6464573b84afcbc6 /src
parent5530cf6e7939365ef6197a50c59bed20a64e3e11 (diff)
downloadHyprland-c03e4c36b0796e5ab49768e28183a4aecb257bb5.tar.gz
Hyprland-c03e4c36b0796e5ab49768e28183a4aecb257bb5.zip
Setting wayland environment variables at startup (#1045)
* Nix modules: removed GDK_BACKEND env variable * setting wayland environment variables at startup setting XDG_BACKEND and _JAVA_AWT_WM_NONREPARENTING in main.cpp removed these variables from nix modules recommended environemnt removed XCURSOR_SIZE from nix modules as it is already set * Making _JAVA_AWT_WM_NONREPARENTING not overwritten
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 122127fd..9f34c088 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,6 +19,8 @@ int main(int argc, char** argv) {
for (auto i = 0; i < argc; ++i)
cmd += std::string(i == 0 ? "" : " ") + argv[i];
setenv("HYPRLAND_CMD", cmd.c_str(), 1);
+ setenv("XDG_BACKEND", "wayland", 1);
+ setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 0);
// parse some args
std::string configPath;