#!/bin/bash

echo "🔧 Fixing AI Dictation Service..."

# Copy the updated service file
echo "📋 Copying service file..."
sudo cp dictation.service /etc/systemd/user/dictation.service

# Reload systemd daemon
echo "🔄 Reloading systemd daemon..."
systemctl --user daemon-reload

# Start the service
echo "🚀 Starting AI dictation service..."
systemctl --user start dictation.service

# Check status
echo "📊 Checking service status..."
sleep 3
systemctl --user status dictation.service

echo "✅ Service setup complete!"