Fixing snap path

This commit is contained in:
RetGal 2021-02-26 12:46:46 +01:00
parent 6b2c293248
commit 18e2c091eb
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ public class Assistant implements Configurable<AssistantConfiguration>, Clipboar
help.addActionListener(ev1 -> {
if (isSnapped()) {
try {
new ProcessBuilder("/bin/dayon.browser", getQuickStartURI(FrameType.ASSISTANT).toString()).start();
new ProcessBuilder("../bin/dayon.browser", getQuickStartURI(FrameType.ASSISTANT).toString()).start();
} catch (URISyntaxException | IOException ex) {
Log.warn("Help Error!", ex);
}

View File

@ -262,7 +262,7 @@ public abstract class BaseFrame extends JFrame {
private static void browse(URI uri) {
try {
if (isSnapped()) {
new ProcessBuilder("/bin/dayon.browser", uri.toString()).start();
new ProcessBuilder("../bin/dayon.browser", uri.toString()).start();
} else if (Desktop.isDesktopSupported()) {
final Desktop desktop = Desktop.getDesktop();
if (desktop.isSupported(Desktop.Action.BROWSE)) {