Skip to content

Instantly share code, notes, and snippets.

@ponfertato
Created November 18, 2025 16:09
Show Gist options
  • Select an option

  • Save ponfertato/5e9984a70a79f47a4199a5d8cbe20cf6 to your computer and use it in GitHub Desktop.

Select an option

Save ponfertato/5e9984a70a79f47a4199a5d8cbe20cf6 to your computer and use it in GitHub Desktop.
[Desktop Entry]
Version=1.0
Type=Application
Name=AppImage Launcher
Name[ru_RU]=Запуск AppImage
Comment=Выбор приложений из ~/Документы/Программы/
Comment[ru_RU]=Выбор приложений из ~/Документы/Программы/
Exec=konsole --hold -e bash -lc 'APP_DIR="$HOME/Документы/Программы"; echo "Папка поиска: $APP_DIR"; if [ ! -d "$APP_DIR" ]; then echo -e "\\nОшибка: папка не существует"; read -rsp "\\nНажмите Enter для выхода..."; exit 1; fi; cd "$APP_DIR"; files=(*.appimage); if [ ${#files[@]} -eq 0 ] || [ -z "${files[0]}" ]; then echo -e "\\nНет AppImage файлов"; read -rsp "\\nНажмите Enter для выхода..."; exit 1; fi; echo -e "\\nДоступные приложения:"; for i in "${!files[@]}"; do echo "$((i+1))) ${files[$i]%.appimage}"; done; echo; read -p "Выберите номер: " choice; if [[ "$choice" =~ ^[0-9]+$ ]] && [ "$choice" -ge 1 ] && [ "$choice" -le ${#files[@]} ]; then app="${files[$((choice-1))]}"; echo -e "\\nЗапуск ${app%.appimage}..."; nix shell nixpkgs/nixos-25.05#appimage-run --command appimage-run "./$app"; else echo -e "\\nНеверный номер"; read -rsp "\\nНажмите Enter для выхода..."; fi'
Icon=system-run-symbolic
Terminal=false
Categories=Utility;System;
StartupNotify=true
Keywords[ru_RU]=appimage;программы;запуск;
Keywords=appimage;programs;launch;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment