mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-04-24 08:31:39 -04:00
Various fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user