Skip to content

Commit

Permalink
add conditional to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Oct 6, 2020
1 parent c065ca3 commit 53ebd81
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions profile
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ if [ -d /etc/profile.d ]; then
unset i
fi

export DISPLAY=:1
eval "while true;do
/usr/bin/startlxde-pi
if [ -z $DISPLAY ];then
export DISPLAY=:1
eval "while true;do
/usr/bin/startlxde-pi
sleep 10
done" &

sleep 10
done" &

sleep 10
eval "pcmanfm --desktop --profile LXDE-pi; sleep 20; pcmanfm --desktop --profile LXDE-pi" &
lxpanelctl restart
sleep 10
lxpanelctl restart
eval "pcmanfm --desktop --profile LXDE-pi; sleep 20; pcmanfm --desktop --profile LXDE-pi" &
lxpanelctl restart
sleep 10
lxpanelctl restart
fi

0 comments on commit 53ebd81

Please sign in to comment.