X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fsave%2FExifSaver.java;h=f8e04de67a5a1308ca6d5706ed0f3ab505de1fec;hp=6533fcbed0e39f3043bde1bca12cf22c762374f2;hb=112bb0c9b46894adca9a33ed8c99ea712b253185;hpb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f diff --git a/tim/prune/save/ExifSaver.java b/tim/prune/save/ExifSaver.java index 6533fcb..f8e04de 100644 --- a/tim/prune/save/ExifSaver.java +++ b/tim/prune/save/ExifSaver.java @@ -19,6 +19,7 @@ import javax.swing.JProgressBar; import javax.swing.JScrollPane; import javax.swing.JTable; +import tim.prune.Config; import tim.prune.ExternalTools; import tim.prune.I18nManager; import tim.prune.UpdateMessageBroker; @@ -79,7 +80,7 @@ public class ExifSaver implements Runnable public boolean saveExifInformation(PhotoList inPhotoList) { // Check if external exif tool can be called - boolean exifToolInstalled = ExternalTools.isExiftoolInstalled(); + boolean exifToolInstalled = ExternalTools.isToolInstalled(ExternalTools.TOOL_EXIFTOOL); if (!exifToolInstalled) { // show warning @@ -331,7 +332,7 @@ public class ExifSaver implements Runnable { // Make a string array to construct the command and its parameters String[] result = new String[inOverwrite?5:4]; - result[0] = "exiftool"; + result[0] = Config.getConfigString(Config.KEY_EXIFTOOL_PATH); result[1] = "-P"; if (inOverwrite) {result[2] = " -overwrite_original_in_place";} // remove all gps tags @@ -353,7 +354,7 @@ public class ExifSaver implements Runnable { // Make a string array to construct the command and its parameters String[] result = new String[inOverwrite?10:9]; - result[0] = "exiftool"; + result[0] = Config.getConfigString(Config.KEY_EXIFTOOL_PATH); result[1] = "-P"; if (inOverwrite) {result[2] = "-overwrite_original_in_place";} int paramOffset = inOverwrite?3:2;