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:
@@ -341,6 +341,9 @@ local userBootScripts = UserBootscript.sample UserSetupEnvironment.sample ;
|
|||||||
SEARCH on $(userBootScripts) = [ FDirName $(HAIKU_TOP) data config boot ] ;
|
SEARCH on $(userBootScripts) = [ FDirName $(HAIKU_TOP) data config boot ] ;
|
||||||
AddFilesToHaikuImage home config boot : $(userBootScripts) ;
|
AddFilesToHaikuImage home config boot : $(userBootScripts) ;
|
||||||
|
|
||||||
|
# Add Autostart directory
|
||||||
|
AddDirectoryToHaikuImage home config boot Autostart ;
|
||||||
|
|
||||||
local logoArtwork = "HAIKU logo - white on blue - big.png"
|
local logoArtwork = "HAIKU logo - white on blue - big.png"
|
||||||
"HAIKU logo - white on blue - normal.png" ;
|
"HAIKU logo - white on blue - normal.png" ;
|
||||||
SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ;
|
SEARCH on $(logoArtwork) = [ FDirName $(HAIKU_TOP) data artwork ] ;
|
||||||
|
|||||||
@@ -152,6 +152,14 @@ if [ "$SAFEMODE" != "yes" ]; then
|
|||||||
fi
|
fi
|
||||||
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.
|
# Check for fresh install and run post install scripts.
|
||||||
postInstallDir=/boot/common/boot/post_install
|
postInstallDir=/boot/common/boot/post_install
|
||||||
freshInstallIndicator=/boot/common/settings/fresh_install
|
freshInstallIndicator=/boot/common/settings/fresh_install
|
||||||
|
|||||||
Reference in New Issue
Block a user