Thanks Misalf and curaga for your hard work and expertise.
Major improvement over previous OnDemand functionality.
Removing the tc-functions patch, however, provided the best overall results for CLI apps (no hangs).
Based on testing this patch should be modified or removed, would be happy to test additional changes.
TEST SUMMARY:
1. All patches:
- system error beep when loading certain non-GUIs
PE-flashdepends
compiletc
mkisofs-tools
squashfs-tools
- rogue loaded but hung system, required killall rogue
2. Comment out from tc-functions patch:
# else
# echo "Already loaded. Call from regular menu or terminal."
# printf "\a"
- system error beeps disappeared
- rogue loaded but still hung, required killall
3. Remove tc-functions patch:
# else
# fullpath=`which $1`
# if [ "$?" -eq 0 ] && `echo $fullpath | grep -qv ondemand`
# then
# E=$1
# shift 1
# exec $E "$@"
# else
# echo "Already loaded. Call from regular menu or terminal."
# printf "\a"
# fi
- wbar loaded but didn't appear, needed to use run box 'wbar'
- fluid loaded but didn't appear, has no desktop file
- no hangs!
*****
tl;dr
- tested on 6.4rc1, official core.gz and vmlinuz
- /etc/init.d/tc-functions and /usr/bin/ondemand patched as per:
http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/commit/&id=afdfcf4ffe17cceacfb2cb5324019fe8bb479cd8 http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/commit/&id=ccf7cc647a2dc8ae625821a6e8d569a3f6b26aaf http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/commit/&id=6e33e8283ed64637f2f9ed202bf7f17af716e891 http://git.tinycorelinux.net/index.cgi?url=Core-scripts.git/commit/&id=a1815ae2a0ed49804734cfee8533a00e81ab76d0Numerous GUI and non-GUI apps tested via Fluxbox OnDemand click menu:
PE-flashdepends (personal non-GUI)
PE-smplayer (personal GUI)
autoconf
automake
beaver2
compiletc
core-remaster
emelfm
evince2
flpicsee
fluff
fluid
gdb
grabber
jpilot
lshw
mfmr (personal GUI)
mkisofs-tools
mupdf
nano
rogue
squashfs-tools
submitqc6
vlc2
wbar
xfe
xfw
xmms
Method:
- OnDemand items created via Apps
- apply patches/reboot
- right-click OnDemand menu items
- GUIs with desktop files should auto-open and populate wbar
- non-GUIs should load into file system
- close GUI
- reload all items via Ondemand
- GUI apps should re-open
- system should not hang/infinite loop regardless of GUI/non-GUI