From b2af32499390ba54e8eb63ad143f6c10ebe3bf74 Mon Sep 17 00:00:00 2001 From: crschnick Date: Mon, 31 Jan 2022 10:38:11 -0800 Subject: [PATCH] Fix linux dist --- .../main/java/io/xpipe/beacon/BeaconServer.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java b/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java index 3b1674503..cdf35d876 100644 --- a/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java +++ b/beacon/src/main/java/io/xpipe/beacon/BeaconServer.java @@ -42,16 +42,16 @@ public class BeaconServer { return false; } - private static Optional getPortableExecutable() { + private static Optional getPortableLauncherExecutable() { var env = System.getenv("XPIPE_HOME"); Path file = null; // Prepare for invalid XPIPE_HOME path value try { if (System.getProperty("os.name").startsWith("Windows")) { - file = Path.of(env, "xpipe.exe"); + file = Path.of(env, "xpipe-launcher.exe"); } else { - file = Path.of(env, "xpipe"); + file = Path.of(env, "xpipe-launcher"); } return Files.exists(file) ? Optional.of(file) : Optional.empty(); } catch (Exception ex) { @@ -60,7 +60,7 @@ public class BeaconServer { } public static Optional getLauncherExecutable() { - var portable = getPortableExecutable(); + var portable = getPortableLauncherExecutable(); if (portable.isPresent()) { return portable; } @@ -68,9 +68,9 @@ public class BeaconServer { try { Path file = null; if (System.getProperty("os.name").startsWith("Windows")) { - file = Path.of(System.getenv("LOCALAPPDATA"), "X-Pipe", "xpipe.exe"); + file = Path.of(System.getenv("LOCALAPPDATA"), "X-Pipe", "xpipe-launcher.exe"); } else { - file = Path.of("/opt/xpipe/xpipe"); + file = Path.of("/opt/xpipe/xpipe-launcher"); } return Files.exists(file) ? Optional.of(file) : Optional.empty(); } catch (Exception ex) { @@ -84,7 +84,7 @@ public class BeaconServer { if (System.getProperty("os.name").startsWith("Windows")) { file = Path.of(System.getenv("LOCALAPPDATA"), "X-Pipe", "app", "xpipe.exe"); } else { - file = Path.of("/opt/xpipe/app/bin/xpipe"); + file = Path.of("/opt/xpipe/bin/xpipe"); } return Files.exists(file) ? Optional.of(file) : Optional.empty(); } catch (Exception ex) {