| 107 |
gint *Lcont = sc_grave_get_data(Ag, "cont"); |
gint *Lcont = sc_grave_get_data(Ag, "cont"); |
| 108 |
gint *Lpid = (gint *) sc_grave_get_data(Ag, "pid"); |
gint *Lpid = (gint *) sc_grave_get_data(Ag, "pid"); |
| 109 |
gboolean *Labort = (gboolean *)sc_grave_get_data(Ag, "gabort"); |
gboolean *Labort = (gboolean *)sc_grave_get_data(Ag, "gabort"); |
| 110 |
Tdriveinfo *Ldevice = get_drive_info(Ag, "dstothercombo"); |
Tdriveinfo *Ldevice = matos_get_drive_info(Ag, "dstothercombo"); |
| 111 |
|
|
| 112 |
if (Aoperation == DVD_FORMAT) { |
if (Aoperation == DVD_FORMAT) { |
| 113 |
Lmode = ""; |
Lmode = ""; |
| 124 |
}*/ |
}*/ |
| 125 |
|
|
| 126 |
Lcommandline = g_strdup_printf("%s -gui %s %s", |
Lcommandline = g_strdup_printf("%s -gui %s %s", |
| 127 |
conf_get_string("dvd+rw-format"), Lmode, get_dvdrwtools_bus(Ldevice)); |
conf_get_string("dvd+rw-format"), Lmode, matos_get_device(Ldevice)); |
| 128 |
_DEB("execution [%s]\n", Lcommandline); |
_DEB("execution [%s]\n", Lcommandline); |
| 129 |
Lstatus = g_shell_parse_argv(Lcommandline, &Lnbrarg, &Lcmd, Aerror); |
Lstatus = g_shell_parse_argv(Lcommandline, &Lnbrarg, &Lcmd, Aerror); |
| 130 |
g_free(Lcommandline); |
g_free(Lcommandline); |
| 132 |
if (Lstatus == FALSE) { |
if (Lstatus == FALSE) { |
| 133 |
return FALSE; |
return FALSE; |
| 134 |
} |
} |
| 135 |
|
|
| 136 |
|
/* try to umount device before device access */ |
| 137 |
|
matos_umount_device(Ldevice, NULL); |
| 138 |
|
|
| 139 |
Lstatus = g_spawn_async_with_pipes(NULL, Lcmd, NULL, /* env argument */ |
Lstatus = g_spawn_async_with_pipes(NULL, Lcmd, NULL, /* env argument */ |
| 140 |
(GSpawnFlags ) (G_SPAWN_DO_NOT_REAP_CHILD), |
(GSpawnFlags ) (G_SPAWN_DO_NOT_REAP_CHILD), |
| 141 |
NULL, NULL, Lpid, NULL, &g_out, &g_err, Aerror); |
NULL, NULL, Lpid, NULL, &g_out, &g_err, Aerror); |