Add xterm to possible terminal emulators.
This commit is contained in:
1 parent
cee5e4d58a
commit
9856d42376
2 files changed
+52
-6
No files matched your search
+24
-6
@@ -62,19 +62,37 @@ desktop_launcher() {
|
||||
exit 1
|
||||
fi
|
||||
local dotDesktop
|
||||
local terminal
|
||||
# Try to find an accessible terminal
|
||||
for i in mate-terminal lxterminal terminator gnome-terminal ; do
|
||||
if command -v $i &> /dev/null ; then
|
||||
terminal="$i"
|
||||
local launcherPath
|
||||
local terminalName terminalPath="" execLine argument
|
||||
local -a terminalArgs
|
||||
# shellcheck disable=SC2154 # Set by the main script before sourcing helpers.
|
||||
launcherPath="$(readlink -e "${scriptDir}/audiogame-manager.sh")" || return 1
|
||||
# Match Linux Game Manager's preference for accessible terminals.
|
||||
for terminalName in mate-terminal lxterminal terminator gnome-terminal xterm; do
|
||||
if terminalPath="$(command -v "$terminalName")"; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [[ -z "$terminalPath" ]]; then
|
||||
agm_msgbox "Desktop Launcher" "" "No suitable terminal found. Please install mate-terminal, lxterminal, terminator, gnome-terminal, or xterm."
|
||||
return 1
|
||||
fi
|
||||
case "$terminalName" in
|
||||
xterm) terminalArgs=(-T "Audiogame Manager" -e) ;;
|
||||
lxterminal) terminalArgs=(--title "Audiogame Manager" -e) ;;
|
||||
mate-terminal|terminator) terminalArgs=(--title "Audiogame Manager" -x) ;;
|
||||
gnome-terminal) terminalArgs=(--title "Audiogame Manager" --) ;;
|
||||
esac
|
||||
terminalArgs+=(/usr/bin/bash "$launcherPath" -u)
|
||||
execLine="Exec=$(desktop_exec_argument "$terminalPath")"
|
||||
for argument in "${terminalArgs[@]}"; do
|
||||
execLine+=" $(desktop_exec_argument "$argument")"
|
||||
done
|
||||
dotDesktop=('[Desktop Entry]'
|
||||
'Name=Audiogame manager'
|
||||
'GenericName=Audiogame Manager'
|
||||
'Comment=Play audio games'
|
||||
"Exec=${terminal} -t \"Audiogame Manager\" -e \"/usr/bin/bash -c 'nohup $(readlink -e "$0") -u 2> /dev/null'\""
|
||||
"$execLine"
|
||||
'Terminal=false'
|
||||
'Type=Application'
|
||||
'StartupNotify=false'
|
||||
|
||||
@@ -25,6 +25,10 @@ or console dialog otherwise. Cancel closes the action menu without starting an
|
||||
action. Desktop shortcuts created with `-D` now open this menu; recreate existing
|
||||
shortcuts with `-D` to use it.
|
||||
|
||||
The manager shortcut uses the first installed terminal in this order:
|
||||
`mate-terminal`, `lxterminal`, `terminator`, `gnome-terminal`, then `xterm`.
|
||||
Recreate the shortcut with `-D` after changing which terminal you want it to use.
|
||||
|
||||
With no arguments, the list of installed games will be displayed. In all the menus, both installer and launcher, use the up and down arrow keys to find the game you want. Press enter on the game to perform the action. For more detailed help, try the -h flag.
|
||||
|
||||
In the game launch menu, select a game and choose **Desktop Shortcut** to create
|
||||
@@ -91,6 +95,30 @@ next launch. The launcher restores the Windows placeholder beside Arcadelux.exe
|
||||
and adds the matching host module directory to `WINEDLLPATH`, preserving any
|
||||
existing entries. Other games keep their usual launch behavior.
|
||||
|
||||
## Knights of the Old Republic trial
|
||||
|
||||
Choose **Knights of the Old Republic** from `./audiogame-manager.sh -i`.
|
||||
You need to own the Windows version of the game. AGM can install it with
|
||||
SteamCMD, or you can place your own Steam or GOG game files in
|
||||
`~/.local/wine64/drive_c/Program Files/Knights of the Old Republic/` before
|
||||
running the installer. The installer requires `swkotor.exe` there.
|
||||
|
||||
AGM downloads Voice of the Old Republic v0.9.1, checks its published SHA-256,
|
||||
and opens the mod's Windows installer under Wine. Complete that installer for
|
||||
KOTOR 1, then launch the game from AGM. AGM adds a launcher only after it finds
|
||||
the mod's loader, patch, and Prism DLL. The mod's own installer may download
|
||||
additional components.
|
||||
|
||||
This is an experimental Wine integration. The mod targets Windows 10 or later,
|
||||
and its Prism DLL is 32 bit. AGM's existing Prism Speech Dispatcher bridge
|
||||
supports 64 bit games only. We have not established that KOTOR's menu speech,
|
||||
urgent SAPI speech, game audio, keyboard controls, or saving work under Wine.
|
||||
For a useful test, confirm the mod speaks character creation and the first
|
||||
room, F1 reads the mod's key list, movement and menus work, and a save loads
|
||||
after restarting. If speech is silent, check the newest
|
||||
`logs/patch-*.log` in the game directory and report which speech backend it
|
||||
selected.
|
||||
|
||||
## Tekken 3
|
||||
|
||||
Choose **Tekken 3** from `./audiogame-manager.sh -i`. This is a Windows
|
||||
|
||||
Reference in new issue
Block a user