Small fixes

This commit is contained in:
crschnick 2024-03-24 02:41:46 +00:00
parent 096666e345
commit 57352b566f
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,7 @@
package io.xpipe.app.core.check;
import io.xpipe.app.core.mode.OperationMode;
import io.xpipe.app.issue.ErrorAction;
import io.xpipe.app.issue.ErrorEvent;
import io.xpipe.app.issue.LogErrorHandler;
import javafx.scene.text.Font;
@ -16,6 +17,7 @@ public class AppFontLoadingCheck {
// We can't use the normal error handling facility
// as the platform reports as working but opening windows still does not work
new LogErrorHandler().handle(event);
ErrorAction.ignore().handle(event);
OperationMode.halt(1);
}
}

View file

@ -21,9 +21,7 @@ public class ShellTemp {
if (OsType.getLocal().equals(OsType.LINUX)) {
var user = System.getenv("USER");
temp = temp.resolve(user != null ? user : "user");
}
if (OsType.getLocal() != OsType.WINDOWS) {
try {
// 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"));