mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Small fixes
This commit is contained in:
parent
096666e345
commit
57352b566f
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
package io.xpipe.app.core.check;
|
package io.xpipe.app.core.check;
|
||||||
|
|
||||||
import io.xpipe.app.core.mode.OperationMode;
|
import io.xpipe.app.core.mode.OperationMode;
|
||||||
|
import io.xpipe.app.issue.ErrorAction;
|
||||||
import io.xpipe.app.issue.ErrorEvent;
|
import io.xpipe.app.issue.ErrorEvent;
|
||||||
import io.xpipe.app.issue.LogErrorHandler;
|
import io.xpipe.app.issue.LogErrorHandler;
|
||||||
import javafx.scene.text.Font;
|
import javafx.scene.text.Font;
|
||||||
|
@ -16,6 +17,7 @@ public class AppFontLoadingCheck {
|
||||||
// We can't use the normal error handling facility
|
// We can't use the normal error handling facility
|
||||||
// as the platform reports as working but opening windows still does not work
|
// as the platform reports as working but opening windows still does not work
|
||||||
new LogErrorHandler().handle(event);
|
new LogErrorHandler().handle(event);
|
||||||
|
ErrorAction.ignore().handle(event);
|
||||||
OperationMode.halt(1);
|
OperationMode.halt(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,9 +21,7 @@ public class ShellTemp {
|
||||||
if (OsType.getLocal().equals(OsType.LINUX)) {
|
if (OsType.getLocal().equals(OsType.LINUX)) {
|
||||||
var user = System.getenv("USER");
|
var user = System.getenv("USER");
|
||||||
temp = temp.resolve(user != null ? user : "user");
|
temp = temp.resolve(user != null ? user : "user");
|
||||||
}
|
|
||||||
|
|
||||||
if (OsType.getLocal() != OsType.WINDOWS) {
|
|
||||||
try {
|
try {
|
||||||
// We did not set this in earlier versions. If we are running as a different user, it might fail
|
// 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"));
|
Files.setPosixFilePermissions(temp, PosixFilePermissions.fromString("rwxrwxrwx"));
|
||||||
|
|
Loading…
Reference in a new issue