Fix desktop launcher hanging by skipping dependency install in non-interactive mode
This commit is contained in:
parent
19f6726a33
commit
25f91570c5
64
launch_qt.sh
64
launch_qt.sh
|
|
@ -69,36 +69,42 @@ fi
|
|||
|
||||
# Install missing dependencies
|
||||
if [ $MISSING_DEPS -eq 1 ]; then
|
||||
echo ""
|
||||
echo "📦 Installing missing dependencies..."
|
||||
echo "This may take a few minutes..."
|
||||
echo ""
|
||||
|
||||
# Install system dependencies first (for sounddevice)
|
||||
echo "Installing system dependencies..."
|
||||
if command -v apt-get &> /dev/null; then
|
||||
echo "Detected Debian/Ubuntu system"
|
||||
echo "You may need to run: sudo apt-get install portaudio19-dev python3-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"
|
||||
if [[ "$*" == *"--noint"* ]]; then
|
||||
echo "⚠️ Missing dependencies detected in non-interactive mode"
|
||||
echo "Please run './launch_qt.sh' from terminal to install dependencies"
|
||||
# Continue anyway - dependencies might be installed elsewhere
|
||||
else
|
||||
echo ""
|
||||
echo "📦 Installing missing dependencies..."
|
||||
echo "This may take a few minutes..."
|
||||
echo ""
|
||||
|
||||
# Install system dependencies first (for sounddevice)
|
||||
echo "Installing system dependencies..."
|
||||
if command -v apt-get &> /dev/null; then
|
||||
echo "Detected Debian/Ubuntu system"
|
||||
echo "You may need to run: sudo apt-get install portaudio19-dev python3-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
|
||||
|
||||
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
|
||||
|
||||
# Try to read server URL from settings
|
||||
|
|
|
|||
Loading…
Reference in New Issue