Various fixes

This commit is contained in:
crschnick
2024-08-25 23:27:00 +00:00
parent 6c21529789
commit 030faaa601
21 changed files with 33 additions and 32 deletions

View File

@@ -2,6 +2,7 @@ package io.xpipe.core.process;
import io.xpipe.core.store.FileNames;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
@@ -96,14 +97,18 @@ public interface OsType {
@Override
public List<String> determineInterestingPaths(ShellControl pc) throws Exception {
var home = getUserHomeDirectory(pc);
return List.of(
var list = new ArrayList<>(List.of(
home,
FileNames.getParent(home),
FileNames.join(home, "Downloads"),
FileNames.join(home, "Documents"),
"/etc",
"/tmp",
"/var");
"/var"));
var parentHome = FileNames.getParent(home);
if (parentHome != null && !parentHome.equals("/")) {
list.add(3, parentHome);
}
return list;
}
@Override

View File

@@ -2,7 +2,7 @@ package io.xpipe.core.store;
public interface ExpandedLifecycleStore extends DataStore {
default void initializeValidate() {}
default void initializeStore() {}
default void finalizeValidate() throws Exception {}
default void finalizeStore() throws Exception {}
}

View File

@@ -4,7 +4,7 @@ public interface SingletonSessionStore<T extends Session>
extends ExpandedLifecycleStore, InternalCacheDataStore, SessionListener {
@Override
default void finalizeValidate() throws Exception {
default void finalizeStore() throws Exception {
stopSessionIfNeeded();
}