+24
-1
@@ -185,8 +185,26 @@ activate_extension() {
|
||||
}
|
||||
sed "s#__JARVIS_BARE__#${BARE_BIN}#" "${ROOT_DIR}/packaging/jarvisd.service" > "${HOME}/.config/systemd/user/jarvisd.service"
|
||||
log "wrote ${HOME}/.config/systemd/user/jarvisd.service"
|
||||
DBUS_DIR="${XDG_DATA_HOME:-${HOME}/.local/share}/dbus-1/services"
|
||||
mkdir -p "${DBUS_DIR}"
|
||||
cat > "${DBUS_DIR}/io.qvac.Jarvis.service" <<'EOF'
|
||||
[D-BUS Service]
|
||||
Name=io.qvac.Jarvis
|
||||
Exec=/bin/false
|
||||
SystemdService=jarvisd.service
|
||||
EOF
|
||||
log "wrote ${DBUS_DIR}/io.qvac.Jarvis.service"
|
||||
if [[ -f "${CONFIG_DIR}/config.json" ]]; then
|
||||
log "kept existing ${CONFIG_DIR}/config.json"
|
||||
else
|
||||
cat > "${CONFIG_DIR}/config.json" <<'EOF'
|
||||
{
|
||||
"wakePhrase": "hey jarvis",
|
||||
"modelProfile": "laptop-16gb",
|
||||
"ttsEnabled": true
|
||||
}
|
||||
EOF
|
||||
log "created ${CONFIG_DIR}/config.json with default wake phrase, laptop-16gb profile, and TTS enabled"
|
||||
fi
|
||||
if [[ ! -f "${CONFIG_DIR}/qvac.config.json" ]]; then
|
||||
sed "s#__JARVIS_CACHE__#${CACHE_DIR}#g" "${ROOT_DIR}/packaging/qvac.config.template.json" > "${CONFIG_DIR}/qvac.config.json"
|
||||
@@ -218,4 +236,9 @@ else
|
||||
fi
|
||||
log "install complete; log file ${LOG_FILE}"
|
||||
echo "Installed JARVIS-QVAC to ${APP_DIR}"
|
||||
echo "Run: ${APP_DIR}/packaging/first-run.sh"
|
||||
if [[ "${1:-}" == "--enable" ]] || [[ "${PREVIOUSLY_ACTIVE}" == true ]]; then
|
||||
echo "Jarvis is ready. Default wake phrase: hey jarvis. Change it in Settings."
|
||||
else
|
||||
echo "Start with: systemctl --user enable --now jarvisd.service"
|
||||
echo "Then enable the GNOME extension: gnome-extensions enable [email protected]"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user