Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/terminal.c

    r1c635d6 rfeeac0d  
    104104static void getterm(const char *svc, const char *app)
    105105{
    106         task_spawnl(NULL, NULL, APP_GETTERM, APP_GETTERM, svc,
    107             LOCFS_MOUNT_POINT, "--msg", "--wait", "--", app, NULL);
     106        char term[LOC_NAME_MAXLEN];
     107        snprintf(term, LOC_NAME_MAXLEN, "%s/%s", LOCFS_MOUNT_POINT, svc);
     108       
     109        /* Wait for the terminal service to be ready */
     110        service_id_t service_id;
     111        int rc = loc_service_get_id(svc, &service_id, IPC_FLAG_BLOCKING);
     112        if (rc != EOK)
     113                return;
     114       
     115        task_spawnl(NULL, APP_GETTERM, APP_GETTERM, "-w", term, app, NULL);
    108116}
    109117
Note: See TracChangeset for help on using the changeset viewer.