LINUX.ORG.RU
Ответ на: комментарий от delilen

В скрипте запуска проверь наличие export SDL_VIDEO_X11_NO_XRANDR=1
Хотя оно там должно быть по умолчанию, но в некоторых скриптах его нет, после добавления у меня исправилась проблема с панелью, но другого характера(она в игре была видна)

Cooler ★★★★
()
Ответ на: комментарий от Cooler

Собсно вот скрипт.

[delilen@delilen ~]$ cat /home/delilen/postal2/postal2
#!/bin/sh
#
# postal2 startup script
#

# Function to find the real directory a program resides in.
# Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
FindPath()
{
fullpath="`echo $1 | grep /`"
if [ "$fullpath" = "" ]; then
oIFS="$IFS"
IFS=:
for path in $PATH
do if [ -x "$path/$1" ]; then
if [ "$path" = "" ]; then
path="."
fi
fullpath="$path/$1"
break
fi
done
IFS="$oIFS"
fi
if [ "$fullpath" = "" ]; then
fullpath="$1"
fi

# Is the sed/ls magic portable?
if [ -L "$fullpath" ]; then
#fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
fi
dirname $fullpath
}

# Set the home if not already set.
if [ "${POSTAL2_DATA_PATH}" = "" ]; then
POSTAL2_DATA_PATH="`FindPath $0`/System"
fi

LD_LIBRARY_PATH=.:${POSTAL2_DATA_PATH}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH

# Let's boogie!
if [ -x "${POSTAL2_DATA_PATH}/postal2-bin" ]
then
cd "${POSTAL2_DATA_PATH}/"
exec "./postal2-bin" $*
fi
echo "Couldn't run Postal2: Share the Pain (postal2-bin). Is POSTAL2_DATA_PATH set?"
exit 1

# end of postal2 ...

Такой строки нет. Куда ее дописать?

delilen ★☆
() автор топика
Ответ на: комментарий от delilen

Странно, по дефолту тут этого не стоит. Мой скрипт.

#!/bin/sh
#
# postal2 startup script
#

# Function to find the real directory a program resides in.
# Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
FindPath()
{
    fullpath="`echo $1 | grep /`"
    if [ "$fullpath" = "" ]; then
        oIFS="$IFS"
        IFS=:
        for path in $PATH
        do if [ -x "$path/$1" ]; then
               if [ "$path" = "" ]; then
                   path="."
               fi
               fullpath="$path/$1"
               break
           fi
        done
        IFS="$oIFS"
    fi
    if [ "$fullpath" = "" ]; then
        fullpath="$1"
    fi

    # Is the sed/ls magic portable?
    if [ -L "$fullpath" ]; then
        #fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
        fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
    fi
    dirname $fullpath
}

# Set the home if not already set.
if [ "${POSTAL2_DATA_PATH}" = "" ]; then
    POSTAL2_DATA_PATH="`FindPath $0`/System"
fi

LD_LIBRARY_PATH=.:${POSTAL2_DATA_PATH}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH

# Shipped SDL has Xrandr support, and this causes all your windows to
#  resize when the screen resolution changes...force it off, so we use
#  XVidMode instead, which doesn't touch the other windows...
export SDL_VIDEO_X11_NO_XRANDR=1

# Let's boogie!
if [ -x "${POSTAL2_DATA_PATH}/postal2-bin" ]
then
	cd "${POSTAL2_DATA_PATH}/"
	exec "./postal2-bin" $*
fi
echo "Couldn't run Postal2: Share the Pain (postal2-bin). Is POSTAL2_DATA_PATH set?"
exit 1

# end of postal2 ...

Cooler ★★★★
()
Ответ на: комментарий от Cooler

Спасибо. Дописал, заработало как надо.

delilen ★☆
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.