# Function to install the desktop launcher
install_desktop_entry() {
- local desktop_entry_path="/usr/share/applications/alyverkko-cli.desktop"
-
- cat <<EOF | sudo tee "$desktop_entry_path" > /dev/null
-[Desktop Entry]
-Type=Application
-Terminal=true
-Name=Älyverkko CLI
-Comment=Runner for artificial neural network service
-Icon=/opt/alyverkko-cli/logo.png
-Exec=/opt/alyverkko-cli/alyverkko-cli mail
-Categories=Development;
-EOF
-
- sudo chmod 644 "$desktop_entry_path"
+ sudo cp launchers/alyverkko-cli*.desktop /usr/share/applications/
+ sudo chmod 644 /usr/share/applications/alyverkko-cli*.desktop
}
# Function to install systemd service