Files
dms-chat/StartupCheck.qml
SalastilandClaude Sonnet 5 12008621ee Initial commit: Dank Chat unified multi-protocol chat plugin for DankMaterialShell
Rust daemon (chatd-rs) speaking IRC, Discord, and Sneedchat (SockChat over
Tor) behind a shared Unix-socket JSON-RPC/event protocol, plus the QML
frontend (accounts, buffers, messages, settings) that drives it. The
earlier libpurple-based C daemon and its vendored/submoduled protocol
plugins have been fully superseded and are not carried into this history.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-08-09 02:50:53 -04:00

28 lines
921 B
QML

import QtQuick
import qs.Common
// Gates plugin activation on the chatd binary actually being built (see
// chatd-rs/README or the project plan - a Rust build step is needed
// before this plugin can do anything).
QtObject {
function chatdPath() {
const dirUrl = Qt.resolvedUrl(".").toString();
const dir = dirUrl.replace(/^file:\/\//, "");
return dir + "chatd-rs/target/release/chatd";
}
function check(done) {
const path = chatdPath();
Proc.runCommand("dankChat.depCheck", ["test", "-x", path], (stdout, exitCode) => {
if (exitCode === 0) {
done(null);
return;
}
done({
"title": I18n.tr("chatd is not built"),
"details": I18n.tr("Expected an executable at:\n%1\n\nBuild it with:\ncd chatd-rs && cargo build --release").arg(path)
});
});
}
}