Moved per user post install actions to first-login script.
* The same mechanism (and the same PostInstallScript) is used for this. * If a file first_login exists in ~/config/settings/boot, the first-login scripts are launched, and the file removed. * This fixes adding the deskbar tray icons even when there is no Deskbar running yet (for example on first boot when the FirstBootPrompt starts), or, IOW bug #12275.
This commit is contained in:
@@ -137,14 +137,19 @@ local userLaunchScripts = <data!launch>user ;
|
||||
SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
|
||||
AddFilesToPackage data user_launch : $(userLaunchScripts) ;
|
||||
|
||||
# post install scripts
|
||||
local postInstallFiles = add_catalog_entry_attributes.sh
|
||||
default_deskbar_items.sh ;
|
||||
# post install + first login scripts
|
||||
local postInstallFiles = add_catalog_entry_attributes.sh ;
|
||||
postInstallFiles = $(postInstallFiles:G=post-install) ;
|
||||
SEARCH on $(postInstallFiles)
|
||||
= [ FDirName $(HAIKU_TOP) data system boot post_install ] ;
|
||||
AddFilesToPackage boot post-install : $(postInstallFiles) ;
|
||||
|
||||
local firstLoginFiles = default_deskbar_items.sh ;
|
||||
firstLoginFiles = $(firstLoginFiles:G=first-login) ;
|
||||
SEARCH on $(firstLoginFiles)
|
||||
= [ FDirName $(HAIKU_TOP) data system boot first_login ] ;
|
||||
AddFilesToPackage boot first-login : $(firstLoginFiles) ;
|
||||
|
||||
# artwork and sounds
|
||||
local logoArtwork =
|
||||
$(HAIKU_INCLUDE_TRADEMARKS)"HAIKU logo - white on blue - big.png"
|
||||
|
||||
@@ -134,12 +134,12 @@ local userLaunchScripts = <data!launch>user ;
|
||||
SEARCH on $(userLaunchScripts) = [ FDirName $(HAIKU_TOP) data launch ] ;
|
||||
AddFilesToPackage data user_launch : $(userLaunchScripts) ;
|
||||
|
||||
# post install scripts
|
||||
local postInstallFiles = default_deskbar_items.sh ;
|
||||
postInstallFiles = $(postInstallFiles:G=post-install) ;
|
||||
SEARCH on $(postInstallFiles)
|
||||
= [ FDirName $(HAIKU_TOP) data system boot post_install ] ;
|
||||
AddFilesToPackage boot post-install : $(postInstallFiles) ;
|
||||
# first login scripts
|
||||
local firstLoginFiles = default_deskbar_items.sh ;
|
||||
firstLoginFiles = $(firstLoginFiles:G=first-login) ;
|
||||
SEARCH on $(firstLoginFiles)
|
||||
= [ FDirName $(HAIKU_TOP) data system boot first_login ] ;
|
||||
AddFilesToPackage boot first_login : $(firstLoginFiles) ;
|
||||
|
||||
local fortuneFiles = [ Glob $(HAIKU_TOP)/data/system/data/fortunes
|
||||
: [a-zA-Z0-9]* ] ;
|
||||
|
||||
Reference in New Issue
Block a user