fix Actions launcher
authorNiki Roo <niki@nikiroo.be>
Mon, 13 Apr 2020 18:37:03 +0000 (20:37 +0200)
committerNiki Roo <niki@nikiroo.be>
Mon, 13 Apr 2020 18:37:03 +0000 (20:37 +0200)
src/be/nikiroo/fanfix_swing/Actions.java
src/be/nikiroo/fanfix_swing/gui/book/BookCoverImager.java

index ec30d5e4c495302317ed6bf350f13f44c8c16850..ff635b7adb0f5e5d13887a715e9ae18eb1c8081d 100644 (file)
@@ -148,11 +148,11 @@ public class Actions {
                Process proc = null;
                if (program == null) {
                        boolean ok = false;
-                       for (String starter : new String[] { "xdg-open", "open", "see",
-                                       "start", "run" }) {
+                       for (String starter : new String[] { "xdg-open", "see",
+                                       "start", "run", "open" }) {
                                try {
                                        Instance.getInstance().getTraceHandler()
-                                                       .trace("starting external program");
+                                                       .trace("starting external program: " + starter);
                                        proc = Runtime.getRuntime().exec(
                                                        new String[] { starter, target.getAbsolutePath() });
                                        ok = true;
@@ -166,7 +166,7 @@ public class Actions {
                        }
                } else {
                        Instance.getInstance().getTraceHandler()
-                                       .trace("starting external program");
+                                       .trace("starting external program: " + program);
                        proc = Runtime.getRuntime()
                                        .exec(new String[] { program, target.getAbsolutePath() });
                }
index 3c92694c32862546e1cd99ad46b65bea4e402188..100b79f0b79403a7f05f23f601dc0bfb9d1fc8b0 100644 (file)
@@ -16,7 +16,6 @@ import javax.imageio.ImageIO;
 
 import be.nikiroo.fanfix.Instance;
 import be.nikiroo.fanfix.library.BasicLibrary;
-import be.nikiroo.fanfix.reader.ui.GuiReaderBookInfo;
 import be.nikiroo.utils.Image;
 import be.nikiroo.utils.ui.ImageUtilsAwt;
 import be.nikiroo.utils.ui.UIUtils;