Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
isXander committed Jul 20, 2022
1 parent d92df18 commit 75610f9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ public abstract class OperatingSystemMixin {
public void open(URL url) {
try {
Debugify.logger.info("Opening non-blocking URL. You may see system errors in the logs you can ignore.");
AccessController.doPrivileged((PrivilegedExceptionAction<Process>)() -> new ProcessBuilder().command(this.getURLOpenCommand(url)).redirectError(ProcessBuilder.Redirect.INHERIT).start());
AccessController.doPrivileged((PrivilegedExceptionAction<Process>)() ->
new ProcessBuilder()
.command(this.getURLOpenCommand(url))
.redirectError(ProcessBuilder.Redirect.INHERIT)
.start()
);
} catch (PrivilegedActionException e) {
UtilAccessor.getLogger().error("Couldn't open url '{}'", url, e);
}
Expand Down

0 comments on commit 75610f9

Please sign in to comment.