/[graveman]/graveman/current/src/dvdrwformat.c
ViewVC logotype

Diff of /graveman/current/src/dvdrwformat.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by scresto, Thu Mar 31 22:14:12 2005 UTC revision 1.9 by scresto, Tue May 17 01:16:34 2005 UTC
# Line 107  gboolean perform_format_dvd(Tgrave *Ag, Line 107  gboolean perform_format_dvd(Tgrave *Ag,
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 = "";
# Line 124  gboolean perform_format_dvd(Tgrave *Ag, Line 124  gboolean perform_format_dvd(Tgrave *Ag,
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);
# Line 132  gboolean perform_format_dvd(Tgrave *Ag, Line 132  gboolean perform_format_dvd(Tgrave *Ag,
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);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26