killthegene
May 13th, 2003, 10:33
my home computer has multiple users all of which wish to use mupen. so instead of installing it in each individual home dir i installed it in /usr/games/mupen64. this works fine however saves are a problem as mupen outputs save files which only the user who created them can read. so if a game loads up a save at the very start and you arent the first person to play on the game mupen will segfualt. any ideas on what to do?
Soggie
May 13th, 2003, 15:21
You could create a ~/.mupen directory for each user using mupen64, containing symlinks for 'roms', 'plugins' and 'lang', as well as a directory 'save'.
Alternately, you could make 'save' a symlink to a shared directory. This shared directory better have g+rws permissions and be owned by a 'games' group to which all users of mupen on your system belong, or you will run into permission problems.
Couple this with a shell script in ~/bin/run-mupen.sh (or similar):
#!/bin/bash
export SDL_AUDIODRIVER=alsa #optional
cd ~/.mupen
/usr/bin/mupen64 $@
Myself, I'm placing the mupen64 files here (trying to be somewhat FHS-compliant):
/usr/bin/mupen64[_nogui]
/usr/share/doc/mupen64/*
/usr/share/mupen64/lang/*
/usr/share/mupen64/roms
/usr/share/pixmaps/mupen64.png
/var/lib/games/mupen64/save/*
blight
May 13th, 2003, 15:22
start using your brain!
write some kinda wrapper script which looks like this:
#!/bin/sh
MUPEN64DIR=/usr/games/mupen64
if [ !-d $HOME/.mupen64 ]; then
mkdir $HOME/.mupen64
fi
cd $HOME/.mupen64
ln -fs $MUPEN64DIR/mupen64
ln -fs $MUPEN64DIR/plugins
if [ !-d save ]; then
mkdir save
fi
./mupen64
killthegene
May 13th, 2003, 16:05
thanks for the help. i will see if i can work out what you meen and follow it (im reletivley new to linux)
blight
May 13th, 2003, 16:41
Originally posted by killthegene
thanks for the help. i will see if i can work out what you meen and follow it (im reletivley new to linux)
i already figured that you are new to linux!
since you are new please don't believe you know everything going on and tell things like masterquest doesn't work if it's prolly your fault which makes it not working :geek:
killthegene
May 14th, 2003, 10:59
as i said in that other thread it only doesnt work with my version of mupen and hacktarux has backed me up on that
killthegene
May 19th, 2003, 17:25
neither of you idea seem to work. would it be possible to do it with a symbolic link using the $home verible? say link to $home/.mupen/save? what about doing setuid on the mupen64 binary? i dont know if any of these would work.
vBulletin v3.6.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.