#!/bin/bash

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
#echo "Script is located in: $SCRIPT_DIR"

# Stop the svanlink service
sudo systemctl stop svanlink.service

# Disable the svanlink service from starting on boot
sudo systemctl disable svanlink.service

# Remove the systemd service file
sudo rm /etc/systemd/system/svanlink.service

# Reload systemd to apply the changes
sudo systemctl daemon-reload

# Verify the service status
sudo systemctl status svanlink.service

echo "svanlink service has been stopped and removed."

sudo rm /etc/xdg/autostart/svanlinkbrowser.desktop
