Skip to content
Myr

application: rename 'path' -> 'exec'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 91ff79a · Browse files · 3 files+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−5 removed

  • other:+5 added−5 removed

3 files+5 added−5 removed

modified:application.h+1 added-1 removed
1#pragma once23struct application {4 char *path;4 char *exec;5 char *title;6 char *comment;7};
modified:main.c+3 added-3 removed
440 unmodified lines
441 if (c->match_count == 0)442 return;443444 assert(c->selected < c->match_count);445 LOG_DBG("exec(%s)", c->matches[c->selected].application->path);445 LOG_DBG("exec(%s)", c->matches[c->selected].application->exec);446447 pid_t pid = fork();448 if (pid == -1)449 LOG_ERRNO("failed to fork");450451 if (pid == 0) {452 /* Child */453454 char *copy = strdup(c->matches[c->selected].application->path);454 char *copy = strdup(c->matches[c->selected].application->exec);455 char *argv[100];456457 size_t cnt = 0;458 for (char *arg = strtok(copy, " ");
557 unmodified lines
1016 shm_fini();10171018 free(c.prompt.text);1019 tll_foreach(c.applications, it) {1020 free(it->item.path);1020 free(it->item.exec);1021 free(it->item.title);1022 free(it->item.comment);1023 tll_remove(c.applications, it);1024 }
47 unmodified lines
modified:xdg.c+1 added-1 removed
80 unmodified lines
81 if (is_desktop_entry && name != NULL && exec != NULL) {82 tll_push_back(83 *applications,84 ((struct application){85 .path = exec, .title = name, .comment = generic_name}));85 .exec = exec, .title = name, .comment = generic_name}));86 } else {87 free(name);88 free(exec);89 free(generic_name);
120 unmodified lines