Updated to use a check for existing font symlink in home directory, creating it if needed and setting permissions. This extension was made before TC was multiuser, so /home/tc was the hardwired path. Now, using the startup script to check for and create or copy over files is preferred as it will not clobber existing config files, and also maintains PPI compatibility. Here is Mplayers startup script for reference. Note that /etc/sysconfig/tcuser contains the TC user that is valid during both boot and runtime use of the startup script. I will add this to the extension guidelines also.
#!/bin/sh
TCUSER=`cat /etc/sysconfig/tcuser`
[ -d /home/"$TCUSER"/.mplayer ] || mkdir /home/"$TCUSER"/.mplayer
[ -f /home/"$TCUSER"/.mplayer/subfont.ttf ] || ln -s /usr/share/fonts/luxisr.ttf /home/"$TCUSER"/.mplayer/subfont.ttf
chown -R tc:staff /home/"$TCUSER"/.mplayer
Mplayer:
Title: Mplayer-nodeps.tce
Description: Mplayer that depends on nothing
Version: SVN-29256
Author: Mplayer team
Original-site: http://mplayerhq.hu
Copying-policy: GPL
Size: 3.3M
Extension_by: Curaga
Comments: Many of us (me, heh) like to watch
movies in the framebuffer. Or just
would rather not download a graphical
toolkit just to play a movie.
-
Here's one without any deps. Play in
FB or X, with vidix/XV accel or none.
-
For sound you'll of course need OSS.
Change-log: 2008/09/27 Original
2008/10/27 Added subfont.ttf symlink to luxisr.ttf
2009/05/05 Update to r29256
Current: 2009/07/24 Used startup script to check for and
create font symlink.
Title: Mplayer-nodeps.tcz
Description: Mplayer that depends on nothing
Version: SVN-29256
Author: Mplayer team
Original-site: http://mplayerhq.hu
Copying-policy: GPL
Size: 4.0M
Extension_by: Curaga
Comments: Many of us (me, heh) like to watch
movies in the framebuffer. Or just
would rather not download a graphical
toolkit just to play a movie.
-
Here's one without any deps. Play in
FB or X, with vidix/XV accel or none.
-
For sound you'll of course need OSS.
Change-log: 2008/09/27 Original
2008/10/27 Added subfont.ttf symlink to luxisr.ttf
2009/05/05 Update to r29256
Current: 2009/07/24 Used startup script to check for and
create font symlink.