1
0
mirror of https://gittea.dev/nova/th.git synced 2025-12-11 02:00:10 -05:00

global_path handling

This commit is contained in:
nova
2025-11-15 22:08:20 +01:00
parent dd7f5634e2
commit 1e99e9d364
2 changed files with 15 additions and 19 deletions

3
main.c
View File

@@ -22,6 +22,7 @@ unsigned int settings;
unsigned int file_modifiers;
unsigned int status = (STATUS_RUN_BACKEND | STATUS_UPDATE_SCREEN_MASK | STATUS_RELOAD_DIRECTORY);
char *start_path;
char *global_path;
time_t *seed;
WINDOW *win_t;
@@ -91,6 +92,7 @@ int main(){
temp_heigth = terminal_height;
}
if (status & STATUS_RUN_BACKEND) {
global_path = getcwd(NULL, 0);
pthread_cond_signal(&cond_top);
pthread_cond_signal(&cond_mid);
pthread_cond_signal(&cond_lft);
@@ -198,6 +200,7 @@ void init() {
#endif
ESCDELAY = 10;
global_path = getcwd(NULL, 0);
char *start_path = getcwd(NULL, 0);
setenv("START_PATH", start_path, 0);
free(start_path);