From 1627f30a62f0a7f7e05cedf37ddaa2cbedb503c2 Mon Sep 17 00:00:00 2001 From: crschnick Date: Sun, 8 Sep 2024 22:48:25 +0000 Subject: [PATCH] Small fixes --- .../java/io/xpipe/ext/base/store/ShellStoreProvider.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/base/src/main/java/io/xpipe/ext/base/store/ShellStoreProvider.java b/ext/base/src/main/java/io/xpipe/ext/base/store/ShellStoreProvider.java index 512f79b4b..aa6dabf78 100644 --- a/ext/base/src/main/java/io/xpipe/ext/base/store/ShellStoreProvider.java +++ b/ext/base/src/main/java/io/xpipe/ext/base/store/ShellStoreProvider.java @@ -8,6 +8,7 @@ import io.xpipe.app.comp.store.StoreSection; import io.xpipe.app.ext.ActionProvider; import io.xpipe.app.ext.DataStoreProvider; import io.xpipe.app.ext.DataStoreUsageCategory; +import io.xpipe.app.ext.ProcessControlProvider; import io.xpipe.app.fxcomps.Comp; import io.xpipe.app.storage.DataStorage; import io.xpipe.app.storage.DataStoreEntry; @@ -26,10 +27,11 @@ public interface ShellStoreProvider extends DataStoreProvider { return new ActionProvider.Action() { @Override public void execute() throws Exception { - ShellStore store = entry.getStore().asNeeded(); + var replacement = ProcessControlProvider.get().replace(entry.ref()); + ShellStore store = replacement.getStore().asNeeded(); TerminalLauncher.open( - entry, - DataStorage.get().getStoreEntryDisplayName(entry), + replacement.get(), + DataStorage.get().getStoreEntryDisplayName(replacement.get()), null, ScriptStore.controlWithDefaultScripts(store.control())); }