Prefer system defaults for desktop window settings
This commit is contained in:
@@ -127,6 +127,8 @@ static void copy_cfg(const char* path, const char* dest, bool verbose) {
|
||||
int source = -1, dest = -1;
|
||||
uint8_t buf[pgsz];
|
||||
ssize_t r, t, w, a;
|
||||
if (!strncmp(p, "env_", 4))
|
||||
break;
|
||||
if ((source = open(p, O_RDONLY)) < 0) {
|
||||
fprintf(stderr, "failed to open (source) '%s': %s\n", p, strerror(errno));
|
||||
goto cleanup;
|
||||
|
||||
@@ -1281,7 +1281,7 @@ struct glava_renderer* rd_new(const char** paths, const char* entry,
|
||||
|
||||
if (auto_desktop) {
|
||||
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);
|
||||
if (fd == -1) {
|
||||
if (errno != ENOENT &&
|
||||
|
||||
Reference in New Issue
Block a user