summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4c61f380..a7e77a02 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -14,6 +14,12 @@ int main(int argc, char** argv) {
if (!getenv("XDG_RUNTIME_DIR"))
throw std::runtime_error("XDG_RUNTIME_DIR is not set!");
+ // export HYPRLAND_CMD
+ std::string cmd = "";
+ for (auto i = 0; i < argc; ++i)
+ cmd += std::string(i == 0 ? "" : " ") + argv[i];
+ setenv("HYPRLAND_CMD", cmd.c_str(), 1);
+
// parse some args
std::string configPath;
for (int i = 1; i < argc; ++i) {