Open console window on Linux and Mac
Pathoschild opened this issue · 8 comments
SMAPI on Linux/Mac doesn't open a console window, so the player doesn't see any messages or errors that appear. Open the console on Linux/Mac too.
Per davisben85 on Discord:
- On Linux, something like
gnome-terminal -e ./StardewModdingAPI.bin.x86_64 $@
should work. - On Mac, something like
open -a Terminal ./StardewModdingAPI.bin.osx $@
should work. - We can test for Mac with
"$UNAME" == "Darwin"
.
Done for Mac in the upcoming 1.4 release. Apparently doing this on Linux in a way that works cross-distro is really hard, so unfortunately Linux users are on their own.
This should now work (in theory) for any Linux distro with x-terminal-emulator
, gnome-terminal
, xterm
, konsole
, or terminal
. Otherwise it'll fall back to the previous behaviour. Tested on Ubuntu 16.04.
This is in the upcoming 1.4 release, so I'll mark this done. We can reopen it if anything comes up.
This apparently breaks Steam on Linux (and probably Mac). If the launch script launches a terminal (even just x-terminal-emulator
with no arguments), nothing seems to happen when it's launched through Steam. When it's launched directly, it works fine.
Testing:
distro | results |
---|---|
Kali 2016.3.2 (@EnderHDMC) |
✘ Nothing happens when launched through Steam; works correctly (including opening a second terminal) when launched through terminal. After removing the terminal code from the launcher (so it runs the game directly like it used to), launching through Steam works. |
Manjaro 16.10 (@tstaples) |
✓ Launches correctly through Steam or terminal. Correctly opens SMAPI console. |
Ubuntu 16.04 (@Pathoschild) |
✓ Launches correctly through Steam or terminal. Correctly opens SMAPI console. |
Split the launch issue on Linux to #198, closing this ticket.