proved so useful that I have rearranged my directories in the Smart Basic app.
Because now you can quickly start the apps from the launcher, it is no longer a burden if the tree is fairly deep.
The contents in my root-directory are now limited to 2 files and 2 directories, apart from the initial content of 'hello world' and 'Examples'
"- Launcher.sb" is the 'standard' launcher
Code: Select all
/* include-file
Included function will recall the launcher.
To be included on exit of program.
*/
CALL ReturnToLauncher
DEF ReturnToLauncher
path$="/- My Launcher.sb"
IF FILE_EXISTS(path$) THEN RUN path$
TEXT ! TEXT CLEAR
PRINT "Returnpath to launcher not found"
END DEF
It activates the launcher-program "- My Launcher.sb" which is adapted to my wishes.
Some programs however are difficult to adapt to automatic return to the launcher.
In those cases I add a copy of "- Launcher.sb" in the appropriate directory.
By starting that program, the actual launcher "/- My Launcher.sb" will be activated.
A major advantage of the 'clean' root-directory is that a complete backup to Dropbox or re-install from Dropbox is quite simple now.