feat: add app launcher and desktop shortcut setup scripts
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
24
setup-desktop-shortcut.sh
Executable file
24
setup-desktop-shortcut.sh
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PROJECT_DIR="$HOME/Desktop/DentalManagementMH06"
|
||||||
|
|
||||||
|
# Make start script executable
|
||||||
|
chmod +x "$PROJECT_DIR/start-app.sh"
|
||||||
|
|
||||||
|
# Create desktop shortcut
|
||||||
|
cat > "$HOME/Desktop/DentalApp.desktop" <<EOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=Dental App
|
||||||
|
Comment=Start Dental Management App (Dev Server + Selenium)
|
||||||
|
Exec=$PROJECT_DIR/start-app.sh
|
||||||
|
Icon=dental
|
||||||
|
Terminal=false
|
||||||
|
Categories=Application;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x "$HOME/Desktop/DentalApp.desktop"
|
||||||
|
gio set "$HOME/Desktop/DentalApp.desktop" metadata::trusted true 2>/dev/null
|
||||||
|
|
||||||
|
echo "Desktop shortcut created successfully!"
|
||||||
7
start-app.sh
Executable file
7
start-app.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PROJECT_DIR="$HOME/Desktop/DentalManagementMH06"
|
||||||
|
SELENIUM_DIR="$PROJECT_DIR/apps/SeleniumService"
|
||||||
|
|
||||||
|
qterminal --title "Dental App - Dev Server" -e bash -c "cd '$PROJECT_DIR' && npm run dev; exec bash" &
|
||||||
|
qterminal --title "Dental App - Selenium" -e bash -c "cd '$SELENIUM_DIR' && .venv/bin/python agent.py; exec bash" &
|
||||||
Reference in New Issue
Block a user