re-added auto-start and updated auto-start to check for existing sessions

This commit is contained in:
2024-11-11 11:26:20 +01:00
parent cb1a45a54e
commit b12fa46ea1
2 changed files with 17 additions and 0 deletions

View File

@@ -7,11 +7,18 @@ apps=(
vesktop
trayscale
1password
fcitx5
)
echo "Starting auto-start applications..."
for app in "${apps[@]}"; do
if [ -x "$(command -v $app)" ]; then
# Check if there's already a screen session with the same name
if screen -list | grep -q $app; then
echo "$app is already running. Skipping..."
continue
fi
echo "Starting $app..."
screen -dmS $app $app
sleep 1