Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When you try to go full screen for full resolution, the task panel and the unity bar stay in place. While in 12.04, the game goes into full screen. Why does this happen in 12.10? Is there a way to fix this?

share|improve this question

2 Answers 2

Open bash script /usr/games/lugaru

Delete code inside and paste this code:

#!/bin/sh

cd /usr/lib/games/lugaru || exit 1
exec ./lugaru -fullscreen
share|improve this answer
    
How do you do bash scripting? –  Michael Scott Feb 3 '13 at 4:11

The other answer works, but removes the help manual and windowed options. A more conservative edit would be:

#!/bin/sh

for arg in "$@"; do
    case "$arg" in
    -h|-help|--help) exec man lugaru ;;
    -windowed) fullscreen="false" ;;
    esac
done

cd /usr/lib/games/lugaru || exit 1
if [ "$fullscreen" = "false" ]; then
    exec ./lugaru -windowed -nomousegrab ${1+"$@"}
else
    exec ./lugaru ${1+"$@"}
fi

To edit the lugaru script, you need privileges, so run your text editor from terminal:

sudo gedit /usr/games/lugaru
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.