mirror of
https://github.com/RetGal/Dayon.git
synced 2024-10-04 18:37:17 +03:00
Fixing snap path
This commit is contained in:
parent
6b2c293248
commit
18e2c091eb
@ -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);
|
||||
}
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user