mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Cleanup
This commit is contained in:
parent
d482798024
commit
b9b50da190
1 changed files with 1 additions and 8 deletions
|
@ -144,15 +144,8 @@ public class Utilities {
|
||||||
public static void openURI(URI uri) throws BitsquareException {
|
public static void openURI(URI uri) throws BitsquareException {
|
||||||
// On Linux Desktop is poorly implemented.
|
// On Linux Desktop is poorly implemented.
|
||||||
// See https://stackoverflow.com/questions/18004150/desktop-api-is-not-supported-on-the-current-platform
|
// See https://stackoverflow.com/questions/18004150/desktop-api-is-not-supported-on-the-current-platform
|
||||||
boolean succeeded = DesktopApi.browse(uri);
|
if (!DesktopApi.browse(uri))
|
||||||
if (!succeeded)
|
|
||||||
throw new BitsquareException("Failed to open URI: " + uri.toString());
|
throw new BitsquareException("Failed to open URI: " + uri.toString());
|
||||||
/* Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;
|
|
||||||
if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE))
|
|
||||||
desktop.browse(uri);
|
|
||||||
else {
|
|
||||||
new ProcessBuilder("x-www-browser", uri.toURL().toString()).start();
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void openWebPage(String target) throws URISyntaxException, IOException {
|
public static void openWebPage(String target) throws URISyntaxException, IOException {
|
||||||
|
|
Loading…
Add table
Reference in a new issue