diff --git a/app/src/main/java/io/xpipe/app/beacon/AppBeaconServer.java b/app/src/main/java/io/xpipe/app/beacon/AppBeaconServer.java index 93af376e5..7e6cb7f14 100644 --- a/app/src/main/java/io/xpipe/app/beacon/AppBeaconServer.java +++ b/app/src/main/java/io/xpipe/app/beacon/AppBeaconServer.java @@ -84,6 +84,7 @@ public class AppBeaconServer { public static void reset() { if (INSTANCE != null) { INSTANCE.stop(); + INSTANCE.deleteAuthSecret(); INSTANCE = null; } } @@ -112,6 +113,13 @@ public class AppBeaconServer { localAuthSecret = id; } + private void deleteAuthSecret() { + var file = XPipeInstallation.getLocalBeaconAuthFile(); + try { + Files.delete(file); + } catch (IOException ignored) {} + } + private void start() throws IOException { server = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), port), 10); BeaconInterface.getAll().forEach(beaconInterface -> { diff --git a/app/src/main/java/io/xpipe/app/util/ShellTemp.java b/app/src/main/java/io/xpipe/app/util/ShellTemp.java index 952de29b5..fb5528455 100644 --- a/app/src/main/java/io/xpipe/app/util/ShellTemp.java +++ b/app/src/main/java/io/xpipe/app/util/ShellTemp.java @@ -26,6 +26,7 @@ public class ShellTemp { temp = temp.resolve(user != null ? user : "user"); try { + Files.createDirectories(temp); // We did not set this in earlier versions. If we are running as a different user, it might fail Files.setPosixFilePermissions(temp, PosixFilePermissions.fromString("rwxrwxrwx")); } catch (Exception e) { diff --git a/version b/version index 924c68fa4..9339bea98 100644 --- a/version +++ b/version @@ -1 +1 @@ -10.1-6 +10.1-7