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:
parent
6d908f83f3
commit
176b361595
@ -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 ] ;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user