1

いくつかの古い Win タイトルには PlayOnlinux を使用しています。私は通常、非常に古いものを新しい X ウィンドウで開始します。

#!/bin/bash

xinit  '/home/deckoff/.PlayOnLinux/shortcuts/heroes.sh' -- :1 -ac -depth 16

これは、主に PlayOnLinux によって作成された実際の sh ファイルの内容です。

#!/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"  "$@"

2 つのスクリプトを 1 つに結合する方法はありますか? fork しようとしましたが、ちょっと失敗しました

4

1 に答える 1

1

これを試すことができます:

#!/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 <<EOF
于 2012-05-26T00:55:00.753 に答える