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
This commit is contained in:
ShootingStarDragons 2022-10-17 10:10:19 +08:00
parent 9400bd963c
commit ac994d3c10

View file

@ -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;