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:
3
main.c
3
main.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user