forked from DonnieDice/protondrive-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch.sh
More file actions
executable file
·40 lines (34 loc) · 949 Bytes
/
Copy pathlaunch.sh
File metadata and controls
executable file
·40 lines (34 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# ProtonDrive Linux GUI Launcher
echo "ProtonDrive Linux Client Launcher"
echo "================================="
# Check if we're in the project directory
if [ -f "protondrive/gui.py" ]; then
# Check for virtual environment
if [ -d "venv" ]; then
echo "Found virtual environment, activating..."
source venv/bin/activate
fi
# Try to run via module first
if python -m protondrive 2>/dev/null; then
exit 0
fi
# Try direct script execution
if python protondrive/gui.py 2>/dev/null; then
exit 0
fi
fi
# Try system-wide installation
if command -v protondrive-gui &> /dev/null; then
echo "Running system-wide installation..."
protondrive-gui
exit 0
fi
echo "Error: Could not find ProtonDrive GUI installation"
echo ""
echo "To install:"
echo " pip install protondrive-linux"
echo ""
echo "Or run from source:"
echo " python -m protondrive"
exit 1