re-added auto-start and updated auto-start to check for existing sessions
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user