mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
* The HaikuImage script will put a file "fresh_install" into
/boot/home/config/settings. * The Bootscript will check for the existance of this file and updates the mime database with all the applications and preflets that come with the install. Then it removes the indicator file. This fixes the problem that all the apps are not known to the system until you run them once. Ie "Open With..." and such stuff works out of the box. Feel free to find a more elegant way, I just found this simple and effective. :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24247 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d00563dfeb
commit
16eb448eb4
@ -363,6 +363,10 @@ local bisonFiles = "yacc.c" "c.m4" "c++.m4" ;
|
||||
SEARCH on $(bisonFiles) = [ FDirName $(HAIKU_TOP) src bin bison data ] ;
|
||||
AddFilesToHaikuImage beos etc : $(bisonFiles) ;
|
||||
|
||||
# fresh install indicator file
|
||||
SEARCH on <settings>fresh_install = [ FDirName $(HAIKU_TOP) data settings ] ;
|
||||
AddFilesToHaikuImage home config settings : <settings>fresh_install ;
|
||||
|
||||
# boot loader
|
||||
AddFilesToHaikuImage beos system : zbeos ;
|
||||
|
||||
|
1
data/settings/fresh_install
Normal file
1
data/settings/fresh_install
Normal file
@ -0,0 +1 @@
|
||||
This file is only supposed to exist on fresh Haiku installations.
|
@ -121,3 +121,15 @@ if [ "$SAFEMODE" != "yes" ]; then
|
||||
. $HOME/config/boot/UserBootscript
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check for fresh install and register all bundled app mimetypes
|
||||
FRESH_INSTALL_INDICATOR_FILE=$HOME/config/settings/fresh_install
|
||||
if [ -e $FRESH_INSTALL_INDICATOR_FILE ]; then
|
||||
mimeset -all -f /boot/beos/apps
|
||||
mimeset -all -f /boot/beos/preferences
|
||||
mimeset -all -f /boot/beos/system/servers
|
||||
mimeset -all -f /boot/apps
|
||||
rm $FRESH_INSTALL_INDICATOR_FILE
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user