Add an Autostart directory as an easy way to start applications at boot up.

The dead simple Bash code was just copied from Humdinger's patch on #1202. He
also suggested having a link on the Deskbar for this folder, but I don't know
if that is needed. We just need to document it, which I may do next.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2009-08-19 21:26:36 +00:00
parent 6d908f83f3
commit 176b361595
2 changed files with 11 additions and 0 deletions

View File

@ -341,6 +341,9 @@ local userBootScripts = UserBootscript.sample UserSetupEnvironment.sample ;
SEARCH on $(userBootScripts) = [ FDirName $(HAIKU_TOP) data config boot ] ;
AddFilesToHaikuImage home config boot : $(userBootScripts) ;
# Add Autostart directory
AddDirectoryToHaikuImage home config boot Autostart ;
local logoArtwork = "HAIKU logo - white on blue - big.png"
"HAIKU logo - white on blue - normal.png" ;
SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ;

View File

@ -152,6 +152,14 @@ if [ "$SAFEMODE" != "yes" ]; then
fi
fi
# Start all programs in the Autostart folder
if [ "$SAFEMODE" != "yes" ]; then
for program in $HOME/config/boot/Autostart/*
do
"$program" &
done
fi
# Check for fresh install and run post install scripts.
postInstallDir=/boot/common/boot/post_install
freshInstallIndicator=/boot/common/settings/fresh_install