@@ -194,6 +194,28 @@ Exec=/bin/false
|
||||
SystemdService=jarvisd.service
|
||||
EOF
|
||||
log "wrote ${DBUS_DIR}/io.qvac.Jarvis.service"
|
||||
ICON_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/icons/hicolor/scalable/apps"
|
||||
APP_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/applications"
|
||||
mkdir -p "${ICON_HOME}" "${APP_HOME}"
|
||||
ICON_SRC="${ROOT_DIR}/apps/gnome-extension/[email protected]/brand/icons/io.qvac.Jarvis.Control.svg"
|
||||
if [[ -f "${ICON_SRC}" ]]; then
|
||||
cp "${ICON_SRC}" "${ICON_HOME}/io.qvac.Jarvis.Control.svg"
|
||||
log "installed application icon io.qvac.Jarvis.Control"
|
||||
fi
|
||||
cat > "${APP_HOME}/io.qvac.Jarvis.Control.desktop" <<EOF
|
||||
[Desktop Entry]
|
||||
Name=Jarvis
|
||||
GenericName=Voice Assistant
|
||||
Comment=Local voice for your desktop
|
||||
Exec=gjs -m ${APP_DIR}/apps/control-center/main.js
|
||||
Icon=io.qvac.Jarvis.Control
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=GTK;Settings;Utility;
|
||||
Keywords=voice;assistant;jarvis;qvac;
|
||||
StartupNotify=true
|
||||
EOF
|
||||
log "installed ${APP_HOME}/io.qvac.Jarvis.Control.desktop"
|
||||
if [[ -f "${CONFIG_DIR}/config.json" ]]; then
|
||||
log "kept existing ${CONFIG_DIR}/config.json"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user