mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
Fix #64
This commit is contained in:
parent
39bcad23dd
commit
debb0d6bc1
|
@ -40,7 +40,7 @@ static char* get_config_path() {
|
||||||
} else {
|
} else {
|
||||||
name = "/sway/config";
|
name = "/sway/config";
|
||||||
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
|
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
|
||||||
strcpy(temp, home);
|
strcpy(xdg_config_home, home);
|
||||||
strcat(temp, name);
|
strcat(temp, name);
|
||||||
}
|
}
|
||||||
if (exists(temp)) {
|
if (exists(temp)) {
|
||||||
|
@ -93,7 +93,7 @@ static char* get_config_path() {
|
||||||
} else {
|
} else {
|
||||||
name = "/i3/config";
|
name = "/i3/config";
|
||||||
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
|
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
|
||||||
strcpy(temp, home);
|
strcpy(xdg_config_home, home);
|
||||||
strcat(temp, name);
|
strcat(temp, name);
|
||||||
}
|
}
|
||||||
if (exists(temp)) {
|
if (exists(temp)) {
|
||||||
|
|
Loading…
Reference in a new issue