From c8bf92a3e1946d30e1fa12cac63952e9203f04e9 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Mon, 13 Apr 2020 20:37:03 +0200 Subject: [PATCH] fix Actions launcher --- src/be/nikiroo/fanfix_swing/Actions.java | 8 ++++---- src/be/nikiroo/fanfix_swing/gui/book/BookCoverImager.java | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/be/nikiroo/fanfix_swing/Actions.java b/src/be/nikiroo/fanfix_swing/Actions.java index ec30d5e4..ff635b7a 100644 --- a/src/be/nikiroo/fanfix_swing/Actions.java +++ b/src/be/nikiroo/fanfix_swing/Actions.java @@ -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() }); } diff --git a/src/be/nikiroo/fanfix_swing/gui/book/BookCoverImager.java b/src/be/nikiroo/fanfix_swing/gui/book/BookCoverImager.java index 3c92694c..100b79f0 100644 --- a/src/be/nikiroo/fanfix_swing/gui/book/BookCoverImager.java +++ b/src/be/nikiroo/fanfix_swing/gui/book/BookCoverImager.java @@ -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; -- 2.27.0