Hi,
I am now preparing the final version of multimedia packages for 4MLinux 26.0 STABLE (to be released in a month). I would like to post one example here. This is a small script that starts xine:
Code:
#!/bin/ash
#
#
export LD_LIBRARY_PATH=/opt/xine/ffmpeg:/opt/xine/lib
FILE=$(echo $1 | sed 's/ /*/g')
if [ -e /usr/share/X11/xorg.conf.d/20-driver2d.conf ]; then
exec /opt/xine/bin/xine -V xshm $FILE
else
if [ -e /usr/lib/vdpau ]; then
exec /opt/xine/bin/xine $FILE
else
exec /opt/xine/bin/xine -V xv $FILE
fi
fi
This simple script checks if a dedicated display driver is loaded. Additionally, it checks if opengl support (mesa or nvidia) is available. Depending on the result, the script forces xine to use slow but save drivers, or it allows xine to choose and load one of opengl drivers. In other words, the script maximizes the chance to successfully start multimedia player even on older computer.
This example shows how it works. 4MLinux is lightweight/old-computer-friendly by its design (and not by the size of its installation CD).
.