mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-23 17:29:37 +03:00
software_widget: support app params via '|' separator
git-svn-id: svn://kolibrios.org@6955 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
670acb8f9c
commit
3866887afb
@ -179,12 +179,24 @@ void draw_top_bar()
|
||||
|
||||
void EventRunApp(dword appid)
|
||||
{
|
||||
if (file_exists(app_path_collection.get(appid))) {
|
||||
io.run(app_path_collection.get(appid), "");
|
||||
dword app_path = app_path_collection.get(appid);
|
||||
|
||||
dword param_pos = strchr(app_path, '|');
|
||||
if (param_pos) {
|
||||
ESBYTE[param_pos] = NULL;
|
||||
param_pos++;
|
||||
}
|
||||
else {
|
||||
|
||||
if (file_exists(app_path))
|
||||
{
|
||||
io.run(app_path, param_pos); //0 or offset
|
||||
if (param_pos) ESBYTE[param_pos - 1] = '|';
|
||||
}
|
||||
else
|
||||
{
|
||||
notify("'Application not found' -E");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user