I would like to add /usr/games to the PATH also for root since otherwise the
games are not
executable as they are indicated by the .desktop files. The two alternatives
are to patch
the .desktop files of stk-puzzles (not implemented) or to just not doing the
patch when
the games are not installed (implemented).
Objections? Here the patch.
Many greetings
Steffen
--- a/install.sh
+++ b/install.sh
@@ -778,9 +778,21 @@ action_tasks () {
echo " * task: $intern_task"
eval chroot "$INST_DIR" apt-get install $APT_OPTIONS
\$PACKAGES_TASK_$intern_task
chroot "$INST_DIR" apt-get clean
- echo "I: Selection of packages for task $intern_task installed"
+ echo "I: Selection of packages for task '$intern_task'
installed"
case "$intern_task" in
+ "GAMES")
+ # allow games to be found, even as root, otherwise
matchbox-desktop cannot start them
+ if ! egrep "sbin.*/usr/games" "$INST_DIR/etc/profile";
then
+ echo " * adding /usr/games to PATH - also for
root user"
+ if ! sed -i -e
's%PATH="\(/usr/local/sbin.*\)"%PATH="\1:/usr/games"%' "$INST_DIR/etc/profile"
+ then
+ echo "E: Failed modifying /etc/profile."
+ echo " Please report to
'[email protected]'."
+ exit 1
+ fi
+ fi
+ ;;
"WIFI")
#sed -i '/^exec/iif [ -x /usr/bin/wicd-client ]; then
wicd-client
--no-animate &; fi' "$INST_DIR/root/.x
sed -i '/^exec/i#wicd-client --no-animate &'
"$INST_DIR/root/.xsession"
_______________________________________________
pkg-fso-maint mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-fso-maint