Fix desktop launcher hanging by skipping dependency install in non-interactive mode

This commit is contained in:
ComputerTech 2026-01-20 17:20:33 +00:00
parent 19f6726a33
commit 25f91570c5
2 changed files with 35 additions and 29 deletions

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

View File

@ -69,36 +69,42 @@ fi
# Install missing dependencies # Install missing dependencies
if [ $MISSING_DEPS -eq 1 ]; then if [ $MISSING_DEPS -eq 1 ]; then
echo "" if [[ "$*" == *"--noint"* ]]; then
echo "📦 Installing missing dependencies..." echo "⚠️ Missing dependencies detected in non-interactive mode"
echo "This may take a few minutes..." echo "Please run './launch_qt.sh' from terminal to install dependencies"
echo "" # Continue anyway - dependencies might be installed elsewhere
else
# Install system dependencies first (for sounddevice) echo ""
echo "Installing system dependencies..." echo "📦 Installing missing dependencies..."
if command -v apt-get &> /dev/null; then echo "This may take a few minutes..."
echo "Detected Debian/Ubuntu system" echo ""
echo "You may need to run: sudo apt-get install portaudio19-dev python3-pyqt5"
elif command -v dnf &> /dev/null; then # Install system dependencies first (for sounddevice)
echo "Detected Fedora system" echo "Installing system dependencies..."
echo "You may need to run: sudo dnf install portaudio-devel python3-qt5" if command -v apt-get &> /dev/null; then
elif command -v pacman &> /dev/null; then echo "Detected Debian/Ubuntu system"
echo "Detected Arch system" echo "You may need to run: sudo apt-get install portaudio19-dev python3-pyqt5"
echo "You may need to run: sudo pacman -S portaudio python-pyqt5" elif command -v dnf &> /dev/null; then
echo "Detected Fedora system"
echo "You may need to run: sudo dnf install portaudio-devel python3-qt5"
elif command -v pacman &> /dev/null; then
echo "Detected Arch system"
echo "You may need to run: sudo pacman -S portaudio python-pyqt5"
fi
echo ""
echo "Installing Python packages..."
pip3 install --user PyQt5 sounddevice soundfile numpy python-socketio[client] requests
if [ $? -ne 0 ]; then
echo "❌ Installation failed!"
echo "Please install dependencies manually:"
echo " pip3 install --user -r requirements.txt"
exit 1
fi
echo "✅ Dependencies installed successfully!"
fi fi
echo ""
echo "Installing Python packages..."
pip3 install --user PyQt5 sounddevice soundfile numpy python-socketio[client] requests
if [ $? -ne 0 ]; then
echo "❌ Installation failed!"
echo "Please install dependencies manually:"
echo " pip3 install --user -r requirements.txt"
exit 1
fi
echo "✅ Dependencies installed successfully!"
fi fi
# Try to read server URL from settings # Try to read server URL from settings