我在一些旧的Win游戏中使用PlayOnlinux。我通常在新的X窗口中启动非常旧的窗口。
#!/bin/bash
xinit '/home/deckoff/.PlayOnLinux/shortcuts/heroes.sh' -- :1 -ac -depth 16这是实际sh文件的内容,主要由PlayOnLinux创建
#!/bin/bash
xrandr -s 800x600
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
export WINEPREFIX="/home/deckoff/.PlayOnLinux//wineprefix/HOMM3"
export WINEDEBUG="-all"
cd "/home/deckoff/.PlayOnLinux//wineprefix/HOMM3/drive_c/./Program Files/GOG.com/Heroes of Might and Magic 3 Complete"
POL_Wine "Heroes3.exe" "$@"有没有办法把这两个脚本合并成一个,我尝试过forking,但还是失败了
发布于 2012-05-26 08:55:01
您可以尝试这样做:
#!/bin/bash
xinit -- :1 -ac -depth 16 <<EOF
xrandr -s 800x600
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
export WINEPREFIX="/home/deckoff/.PlayOnLinux//wineprefix/HOMM3"
export WINEDEBUG="-all"
cd "/home/deckoff/.PlayOnLinux//wineprefix/HOMM3/drive_c/./Program Files/GOG.com/Heroes of Might and Magic 3 Complete"
POL_Wine "Heroes3.exe" "$@"
EOF如果这样做不起作用,那么尝试将xinit行更改为这两个值中的任何一个,看看它们是否起作用:
xinit - -- :1 -ac -depth 16 <<EOF或
xinit /dev/stdin -- :1 -ac -depth 16 <<EOFhttps://stackoverflow.com/questions/10762198
复制相似问题