[gnome-color-manager/gnome-2-32] Put the executable name in argv[0] for argyll commands, otherwise option processing breaks
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/gnome-2-32] Put the executable name in argv[0] for argyll commands, otherwise option processing breaks
- Date: Wed, 8 Sep 2010 08:40:25 +0000 (UTC)
commit 614cda2979f0e11aea01e2a9351e5e102817529f
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 29 17:35:38 2010 +0100
Put the executable name in argv[0] for argyll commands, otherwise option processing breaks
src/gcm-calibrate-argyll.c | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
---
diff --git a/src/gcm-calibrate-argyll.c b/src/gcm-calibrate-argyll.c
index c4bcb93..d002e2a 100644
--- a/src/gcm-calibrate-argyll.c
+++ b/src/gcm-calibrate-argyll.c
@@ -462,7 +462,8 @@ gcm_calibrate_argyll_display_neutralise (GcmCalibrateArgyll *calibrate_argyll, G
array = g_ptr_array_new_with_free_func (g_free);
/* setup the command */
- g_ptr_array_add (array, g_strdup ("-v9"));
+ g_ptr_array_add (array, g_strdup (command));
+ g_ptr_array_add (array, g_strdup ("-v"));
g_ptr_array_add (array, g_strdup ("-ql"));
g_ptr_array_add (array, g_strdup ("-m"));
g_ptr_array_add (array, g_strdup_printf ("-d%i", priv->display));
@@ -552,7 +553,8 @@ gcm_calibrate_argyll_display_read_chart (GcmCalibrateArgyll *calibrate_argyll, G
array = g_ptr_array_new_with_free_func (g_free);
/* setup the command */
- g_ptr_array_add (array, g_strdup ("-v9"));
+ g_ptr_array_add (array, g_strdup (command));
+ g_ptr_array_add (array, g_strdup ("-v"));
if (priv->done_calibrate)
g_ptr_array_add (array, g_strdup ("-N"));
g_ptr_array_add (array, g_strdup (basename));
@@ -639,7 +641,8 @@ gcm_calibrate_argyll_display_generate_patches (GcmCalibrateArgyll *calibrate_arg
array = g_ptr_array_new_with_free_func (g_free);
/* setup the command */
- g_ptr_array_add (array, g_strdup ("-v9"));
+ g_ptr_array_add (array, g_strdup (command));
+ g_ptr_array_add (array, g_strdup ("-v"));
if (device_kind == GCM_DEVICE_KIND_PRINTER) {
/* print RGB */
g_ptr_array_add (array, g_strdup ("-d2"));
@@ -743,7 +746,8 @@ gcm_calibrate_argyll_display_draw_and_measure (GcmCalibrateArgyll *calibrate_arg
array = g_ptr_array_new_with_free_func (g_free);
/* setup the command */
- g_ptr_array_add (array, g_strdup ("-v9"));
+ g_ptr_array_add (array, g_strdup (command));
+ g_ptr_array_add (array, g_strdup ("-v"));
g_ptr_array_add (array, g_strdup_printf ("-d%i", priv->display));
g_ptr_array_add (array, g_strdup_printf ("-y%c", kind));
g_ptr_array_add (array, g_strdup ("-k"));
@@ -853,7 +857,8 @@ gcm_calibrate_argyll_display_generate_profile (GcmCalibrateArgyll *calibrate_arg
array = g_ptr_array_new_with_free_func (g_free);
/* setup the command */
- g_ptr_array_add (array, g_strdup ("-v9"));
+ g_ptr_array_add (array, g_strdup (command));
+ g_ptr_array_add (array, g_strdup ("-v"));
g_ptr_array_add (array, g_strdup_printf ("-A%s", manufacturer));
g_ptr_array_add (array, g_strdup_printf ("-M%s", model));
g_ptr_array_add (array, g_strdup_printf ("-D%s", description_new));
@@ -1073,7 +1078,8 @@ gcm_calibrate_argyll_device_measure (GcmCalibrateArgyll *calibrate_argyll, GErro
filename = g_strdup_printf ("%s.tif", basename);
/* setup the command */
- g_ptr_array_add (array, g_strdup ("-v9"));
+ g_ptr_array_add (array, g_strdup (command));
+ g_ptr_array_add (array, g_strdup ("-v"));
g_ptr_array_add (array, g_strdup ("-p"));
g_ptr_array_add (array, g_strdup ("-a"));
g_ptr_array_add (array, g_strdup (filename));
@@ -1186,7 +1192,8 @@ gcm_calibrate_argyll_device_generate_profile (GcmCalibrateArgyll *calibrate_argy
array = g_ptr_array_new_with_free_func (g_free);
/* setup the command */
- g_ptr_array_add (array, g_strdup ("-v9"));
+ g_ptr_array_add (array, g_strdup (command));
+ g_ptr_array_add (array, g_strdup ("-v"));
g_ptr_array_add (array, g_strdup_printf ("-A%s", manufacturer));
g_ptr_array_add (array, g_strdup_printf ("-M%s", model));
g_ptr_array_add (array, g_strdup_printf ("-D%s", description_tmp));
@@ -1477,6 +1484,7 @@ gcm_calibrate_argyll_display_generate_targets (GcmCalibrateArgyll *calibrate_arg
array = g_ptr_array_new_with_free_func (g_free);
/* setup the command */
+ g_ptr_array_add (array, g_strdup (command));
g_ptr_array_add (array, g_strdup ("-v"));
/* target instrument */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]