From ac994d3c107b0c8571a9d74ab74ff5a4eb3202b3 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Mon, 17 Oct 2022 10:10:19 +0800 Subject: [PATCH] feat: set xdg-current-desktop envirenment in main.c Then the env will be sway as default, not needed to be set by people I think it should be better --- sway/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/main.c b/sway/main.c index 85bc2f1c9..096ba0bc9 100644 --- a/sway/main.c +++ b/sway/main.c @@ -256,7 +256,7 @@ static const char usage[] = int main(int argc, char **argv) { static bool verbose = false, debug = false, validate = false, allow_unsupported_gpu = false; - + setenv("XDG_CURRENT_DESKTOP", "sway", 0); char *config_path = NULL; int c;