diff --git a/core/src/main/java/io/xpipe/core/util/XPipeExecTempDirectory.java b/core/src/main/java/io/xpipe/core/util/XPipeExecTempDirectory.java index 94611976..9e068a1d 100644 --- a/core/src/main/java/io/xpipe/core/util/XPipeExecTempDirectory.java +++ b/core/src/main/java/io/xpipe/core/util/XPipeExecTempDirectory.java @@ -34,9 +34,9 @@ public class XPipeExecTempDirectory { // Always delete legacy directory and do not care whether it partially fails d.deleteFile(proc, legacyExecTemp).executeAndCheck(); - // Check permissions for home temp directory + // Check permissions for home directory // If this is somehow messed up, we can still default back to the system directory - if (!checkDirectoryPermissions(proc, targetTemp)) { + if (!checkDirectoryPermissions(proc, xpipeHome)) { if (!d.directoryExists(proc, systemTemp).executeAndCheck() || !checkDirectoryPermissions(proc, systemTemp)) { throw new IOException("No permissions to create scripts in either %s or %s".formatted(systemTemp, targetTemp)); } diff --git a/dist/changelogs/1.3.2.md b/dist/changelogs/1.3.2.md index e435febe..8b97d6fc 100644 --- a/dist/changelogs/1.3.2.md +++ b/dist/changelogs/1.3.2.md @@ -2,12 +2,12 @@ - Rework temporary directory handling. Temporary scripts will now be created in the user home directory ~/.xpipe/temp instead of the global temp directory - to fix cases in which permission issues occurred on Linux when trying to clear the directory caused by multiple - users sharing the same directory. + to fix cases in which permission issues occurred on Linux when trying to clear the shared directory. - Fix LXD socket access permission issues by checking the actual socket permissions rather than just user groups. - Fix startup errors due to unrecognized shell type on macOS when Fig was installed - Fix connection creator dialog not showing an error if it occurred before and also throwing errors when a screen reader was active. - Fix filter text field becoming stuck in a loop and freezing up - Make docker inspect action more prominent and fix it failing if elevation is needed +- Use cp -a instead of just cp to copy directories in browser - Many other small miscellaneous fixes and improvements