From 4f1242ca873df8c167530475fcbd80808dc94a7d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 17 Nov 2026 11:53:41 +0100 Subject: assistant: output folder from the daemon's out_dir The settings page edits out_dir in the daemon's config.toml, with the daemon's resolved default as placeholder; the canvas takes the folder from hello instead of asking xdg-user-dir itself. Co-Authored-By: Claude Opus 5.5 --- desktop/assistant/Assistant.qml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'desktop/assistant/Assistant.qml') diff --git a/desktop/assistant/Assistant.qml b/desktop/assistant/Assistant.qml index d6863a0..7d299eb 100644 --- a/desktop/assistant/Assistant.qml +++ b/desktop/assistant/Assistant.qml @@ -49,7 +49,7 @@ Scope { property int opChars: 0 property var opOut: [] property string opError: "" - // Results folder: $(xdg-user-dir DOCUMENTS)/Assistant, read once. + // Results folder: the daemon's out_dir, from hello; this until then. property string outDir: (Quickshell.env("HOME") || "") + "/Documents/Assistant" readonly property string fileops: decodeURIComponent(Qt.resolvedUrl("fileops").toString().replace(/^file:\/\//, "")) @@ -281,18 +281,6 @@ Scope { } } - Process { - running: true - command: ["xdg-user-dir", "DOCUMENTS"] - stdout: StdioCollector { - // With no documents folder set, xdg-user-dir answers $HOME itself. - onStreamFinished: { - const d = text.trim(); - if (d.startsWith("/") && d !== Quickshell.env("HOME")) root.outDir = d + "/Assistant"; - } - } - } - // deck-it's Assistant tab look, from its config's [assistant] keys: the // backdrop picture, the user's avatar, and where the assistant's face is // in the backdrop ([centre x, centre y, size] in its pixels). Empty: no @@ -442,6 +430,7 @@ print(json.dumps({"bg": os.path.expanduser(a.get("background") or ""), root.runningTool = e.state === "tool" ? e.tool : ""; root.model = e.model ?? ""; root.chatModel = e.chat_model ?? ""; + if (e.out_dir) root.outDir = e.out_dir; root.ctxUsed = e.ctx_used; root.ctxMax = e.ctx_max; root.load(e.id, e.turns, e.pending); -- cgit v1.2.3