#!/bin/bash

# Параметры
NAME="myschoolEdu"
URL="https://myschool.edu.ru"
DESKTOP_FILE="/usr/share/applications/myschoolEdu.desktop"

# Создание .desktop файла
echo "[Desktop Entry]" > "$DESKTOP_FILE"
echo "Version=1.0" >> "$DESKTOP_FILE"
echo "Type=Application" >> "$DESKTOP_FILE"
echo "Name=$NAME" >> "$DESKTOP_FILE"
echo "Exec=xdg-open $URL" >> "$DESKTOP_FILE"
echo "Icon=web-browser" >> "$DESKTOP_FILE"
echo "Terminal=false" >> "$DESKTOP_FILE"
echo "Categories=Internet;" >> "$DESKTOP_FILE"
echo "StartupNotify=true" >> "$DESKTOP_FILE"

# Установка прав на выполнение
chmod +x "$DESKTOP_FILE"

echo "Ссылка создана: $DESKTOP_FILE"

