mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-23 00:45:35 +00:00
Small fixes [stage]
This commit is contained in:
@@ -47,6 +47,7 @@ public class AppProperties {
|
||||
boolean autoAcceptEula;
|
||||
UUID uuid;
|
||||
boolean initialLaunch;
|
||||
boolean restarted;
|
||||
/**
|
||||
* Unique identifier that resets on every XPipe restart.
|
||||
*/
|
||||
@@ -129,6 +130,9 @@ public class AppProperties {
|
||||
autoAcceptEula = Optional.ofNullable(System.getProperty("io.xpipe.app.acceptEula"))
|
||||
.map(Boolean::parseBoolean)
|
||||
.orElse(false);
|
||||
restarted = Optional.ofNullable(System.getProperty("io.xpipe.app.restarted"))
|
||||
.map(Boolean::parseBoolean)
|
||||
.orElse(false);
|
||||
|
||||
// We require the user dir from here
|
||||
AppUserDirectoryCheck.check(dataDir);
|
||||
|
||||
@@ -256,7 +256,7 @@ public abstract class OperationMode {
|
||||
var exec = XPipeInstallation.createExternalAsyncLaunchCommand(
|
||||
loc,
|
||||
XPipeDaemonMode.GUI,
|
||||
"\"-Dio.xpipe.app.acceptEula=true\" \"-Dio.xpipe.app.dataDir=" + dataDir + "\"",
|
||||
"\"-Dio.xpipe.app.acceptEula=true\" \"-Dio.xpipe.app.dataDir=" + dataDir + "\" \"-Dio.xpipe.app.restarted=true\"",
|
||||
true);
|
||||
LocalShell.getShell().executeSimpleCommand(exec);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class UpdateCheckComp extends SimpleComp {
|
||||
}
|
||||
|
||||
if (updateReady.getValue()) {
|
||||
var prefix = AppDistributionType.get() == AppDistributionType.PORTABLE
|
||||
var prefix = !AppDistributionType.get().getUpdateHandler().supportsDirectInstallation()
|
||||
? AppI18n.get("updateReadyPortable")
|
||||
: AppI18n.get("updateReady");
|
||||
var version = "Version "
|
||||
|
||||
@@ -20,6 +20,11 @@ public class GitHubUpdater extends UpdateHandler {
|
||||
super(startBackgroundThread);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsDirectInstallation() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ModalButton> createActions() {
|
||||
var list = new ArrayList<ModalButton>();
|
||||
|
||||
@@ -17,6 +17,11 @@ public class PortableUpdater extends UpdateHandler {
|
||||
super(thread);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsDirectInstallation() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ModalButton> createActions() {
|
||||
var list = new ArrayList<ModalButton>();
|
||||
|
||||
@@ -104,9 +104,10 @@ public abstract class UpdateHandler {
|
||||
var checked = false;
|
||||
ThreadHelper.sleep(Duration.ofMinutes(1).toMillis());
|
||||
event("Starting background updater thread");
|
||||
var run = !AppProperties.get().isRestarted();
|
||||
while (true) {
|
||||
if (AppPrefs.get().automaticallyUpdate().get()
|
||||
|| AppPrefs.get().checkForSecurityUpdates().get()) {
|
||||
if (run && (AppPrefs.get().automaticallyUpdate().get()
|
||||
|| AppPrefs.get().checkForSecurityUpdates().get())) {
|
||||
event("Performing background update");
|
||||
refreshUpdateCheckSilent(
|
||||
!checked,
|
||||
@@ -116,6 +117,7 @@ public abstract class UpdateHandler {
|
||||
}
|
||||
|
||||
ThreadHelper.sleep(Duration.ofHours(1).toMillis());
|
||||
run = true;
|
||||
}
|
||||
})
|
||||
.start();
|
||||
@@ -141,6 +143,8 @@ public abstract class UpdateHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
public abstract boolean supportsDirectInstallation();
|
||||
|
||||
public final AvailableRelease refreshUpdateCheckSilent(boolean first, boolean securityOnly) {
|
||||
try {
|
||||
return refreshUpdateCheck(first, securityOnly);
|
||||
|
||||
Vendored
+3
-2
@@ -1,10 +1,11 @@
|
||||
- Add ability to launch connections from the command-line with the `xpipe launch` command. Assuming that the `xpipe` executable is in the PATH, you can run `xpipe launch <connection name>` to open a shell session in an existing terminal session
|
||||
- Add ability to launch connections from the command-line with the `xpipe launch` command. With the `xpipe` CLI executable in the PATH, you can run `xpipe launch <connection name>` to open a shell session in an existing terminal session
|
||||
- Add support for cursor, windsurf, and trae editor
|
||||
- Add support for cosmic-term in the new cosmic desktop environment
|
||||
- Add support for cosmic-term of the new cosmic desktop environment
|
||||
- Fix terminal restart failing with a wrong secret message
|
||||
- Fix git sync test failing with no clear message when git wasn't installed
|
||||
- Fix podman container state being wrong on refresh
|
||||
- Fix some connection states not showing when first added
|
||||
- Fix vmware connections requiring setting VM encryption password that was hidden
|
||||
- Fix update button having a misleading description
|
||||
- Fix recognition of Hetzner Storage Box systems
|
||||
- Fix tailscale translations
|
||||
|
||||
Reference in New Issue
Block a user