Changeset 0d6d527 in mainline
- Timestamp:
- 2020-11-21T20:07:34Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f64b7b8
- Parents:
- 68698ba
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/launcher/launcher.c
r68698ba r0d6d527 70 70 }; 71 71 72 static int app_launch(const char * );72 static int app_launch(const char *, const char *); 73 73 74 74 /** Window close button was clicked. … … 94 94 95 95 if (pbutton == launcher->pb1) { 96 app_launch("/app/terminal" );96 app_launch("/app/terminal", NULL); 97 97 } else if (pbutton == launcher->pb2) { 98 app_launch("/app/calculator" );98 app_launch("/app/calculator", NULL); 99 99 } else if (pbutton == launcher->pb3) { 100 app_launch("/app/uidemo" );100 app_launch("/app/uidemo", NULL); 101 101 } else if (pbutton == launcher->pb4) { 102 app_launch("/app/ launcher");103 } 104 } 105 106 static int app_launch(const char *app )102 app_launch("/app/gfxdemo", "ui"); 103 } 104 } 105 106 static int app_launch(const char *app, const char *arg) 107 107 { 108 108 errno_t rc; … … 112 112 if (display_spec != UI_DISPLAY_DEFAULT) { 113 113 printf("%s: Spawning %s -d %s\n", NAME, app, display_spec); 114 rc = task_spawnl(&id, &wait, app, app, "-d", display_spec, NULL); 114 rc = task_spawnl(&id, &wait, app, app, "-d", display_spec, 115 arg, NULL); 115 116 } else { 116 117 printf("%s: Spawning %s\n", NAME, app); 117 rc = task_spawnl(&id, &wait, app, app, NULL);118 rc = task_spawnl(&id, &wait, app, app, arg, NULL); 118 119 } 119 120 … … 316 317 } 317 318 318 rc = ui_pbutton_create(ui_res, " Launcher", &launcher.pb4);319 rc = ui_pbutton_create(ui_res, "GFX Demo", &launcher.pb4); 319 320 if (rc != EOK) { 320 321 printf("Error creating button.\n");
Note:
See TracChangeset
for help on using the changeset viewer.