Prefer system defaults for desktop window settings

This commit is contained in:
Jarcode
2019-09-01 21:46:50 -07:00
parent 1974869b5f
commit a38f79e279
2 changed files with 3 additions and 1 deletions

View File

@@ -127,6 +127,8 @@ static void copy_cfg(const char* path, const char* dest, bool verbose) {
int source = -1, dest = -1; int source = -1, dest = -1;
uint8_t buf[pgsz]; uint8_t buf[pgsz];
ssize_t r, t, w, a; ssize_t r, t, w, a;
if (!strncmp(p, "env_", 4))
break;
if ((source = open(p, O_RDONLY)) < 0) { if ((source = open(p, O_RDONLY)) < 0) {
fprintf(stderr, "failed to open (source) '%s': %s\n", p, strerror(errno)); fprintf(stderr, "failed to open (source) '%s': %s\n", p, strerror(errno));
goto cleanup; goto cleanup;

View File

@@ -1281,7 +1281,7 @@ struct glava_renderer* rd_new(const char** paths, const char* entry,
if (auto_desktop) { if (auto_desktop) {
if (env) { if (env) {
snprintf(se_buf, bsz, "%s/env_%s.glsl", data, env); snprintf(se_buf, bsz, "%s/env_%s.glsl", dd, env);
fd = open(se_buf, O_RDONLY); fd = open(se_buf, O_RDONLY);
if (fd == -1) { if (fd == -1) {
if (errno != ENOENT && if (errno != ENOENT &&