[MPlayer-dev-eng] [PATCH] set absolute path to fbset in TOOLS/mpconsole

Diego Biurrun diego at biurrun.de
Wed Oct 9 01:43:03 CEST 2002


Hi!

Under Debian fbset is under /usr/sbin/fbset and therefore not in the
path of a normal user.  Therefore TOOLS/mpconsole fails to run for me as
normal user.  I suspect that other distros have fbset under /usr/sbin/
also, but I cannot check that, I only have Debian.  If you can confirm
this for other distros, I will apply this trivial patch.

Diego

Index: TOOLS/mpconsole
===================================================================
RCS file: /cvsroot/mplayer/main/TOOLS/mpconsole,v
retrieving revision 1.1
diff -u -r1.1 mpconsole
--- TOOLS/mpconsole	17 Jan 2002 00:39:27 -0000	1.1
+++ TOOLS/mpconsole	8 Oct 2002 23:51:17 -0000
@@ -4,7 +4,7 @@
 # Written by Rich Felker.
 
 trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT
-res=`fbset | grep geometry | sed 's/^ *//'`
+res=`/usr/sbin/fbset | grep geometry | sed 's/^ *//'`
 width=`echo "$res" | cut -d' ' -f2`
 height=`echo "$res" | cut -d' ' -f3`
 tput civis



More information about the MPlayer-dev-eng mailing list