SMPlayer has a config file "smplayer.ini".
A copy is attached below.
It stores the MPlayer version in the line:-
This seems to be the MPlayer version that is detected when SMPlayer is first installed and the smplayer.ini file is created.
When I update MPlayer, I edit this file manually to insert the new version.
(So that the correct version appears in SMPlayer > Help > About SMPlayer screen).
Is there a command I could use that will find the line that starts "mplayer_detected_version=" and change it to "mplayer_detected_version=$version"?
version can be obtained from MPlayer SVN with a command like this:-
And maybe it can be obtained modifying a command like this:-
version=$(LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2)
mplayer -h | grep -i "MPlayer SVN-r"