I have been trying to install Myth2 into /usr/local/games/
as a system wide resource.
This means giving each player their own preferences, saved_games, and recordings.
This is proving difficult to do.
I was getting an error message that the "directory is read-only", and it was not.
It was owned by the mngr, instead of the user, so it could not create the "exclusive use" marker.
I made a script to create a user directory with the preferences, and at least that is working.
But, I have to make a copy of the myth2 binary in the user directory. A link to the binary in /usr/local/games/ will always use the wrong preferences.
I think this needs better individual settings support, such as using a ".myth2" directory in the user home directory for personal settings.
That is unless I have missed something. I don't think that Documentation is complete.
Install System-wide in Linux
Install System-wide in Linux
Last edited by wjohnson on Wed Jul 08, 2020 9:01 pm, edited 1 time in total.
Re: Install System-wide in Linux
Sorry, got interrupted.
I made a script to allow individual users to have their own preferences.
One problem remains, that it must copy the binary to each individual user.
If it tries to execute the copy in /usr/local/games, it will try to use all the directories
in /usr/local/games.
If any user plays the binary in /usr/local/games, they need to own the local directories,
which makes it difficult to have more than one player.
I made a script to allow individual users to have their own preferences.
One problem remains, that it must copy the binary to each individual user.
If it tries to execute the copy in /usr/local/games, it will try to use all the directories
in /usr/local/games.
If any user plays the binary in /usr/local/games, they need to own the local directories,
which makes it difficult to have more than one player.
Code: Select all
#/bin/bash
mythdir=/usr/local/games/myth2
if [ "$1"=="" ]; then
dest="games"
else
dest=$1
fi
usrdir=$dest/myth2
echo "Make user directory $usrdir"
mkdir -p $usrdir
cd $usrdir
echo "Make user preferences"
mkdir preferences
cp -n $mythdir/preferences/* preferences
mkdir "saved games"
mkdir recordings
cp -n $mythdir/recordings/* recordings
# local must be owned by the player, or have write permissions
mkdir local
echo "Make indirections"
ln -s $mythdir/Myth2_32bit myth2
ln -s $mythdir/tags tags
ln -s $mythdir/plugins plugins
ln -s $mythdir/cutscenes cutscenes
ln -s $mythdir/"Myth II Help".pdf help.pdf
ln -s $mythdir/Readme_1.8.3.pdf readme.pdf
ls -l
Re: Install System-wide in Linux
It is still dropping a user file in the tags directory.
That is going to be more difficult to stop.
Does Myth not have any command line switches to select a user directory ?
That is going to be more difficult to stop.
Does Myth not have any command line switches to select a user directory ?