-
-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
show_game_files command not working on linux #851
Comments
I took a quick look using this code from StackOverflow, which is supposed to work crossplatform: Process.Start(new ProcessStartInfo
{
FileName = Constants.GamePath,
UseShellExecute = true,
Verb = "open"
}); Unfortunately that fails with a different error:
I'm not sure how to open a folder from C# on Linux currently, but I'll keep this open to look into it some more in future versions. |
have you tried a wrapper around the file handle and launching that as process instead of directly opening via Process? |
In this case we want to open a folder window, instead of running a script file. Do you mean creating a bash script that opens the folder, and calling that from the C# code? There doesn't seem to be a consistent way to open a GUI folder from bash on Linux unfortunately. |
Built-in commands "show_game_files" and "show_data_files" now open system file dialogs for *nix based systems. The fix is system-agnostic and works on Windows as well. Resolves: Pathoschild#851
This should be fixed via #916 for the upcoming SMAPI 4.1.0. Let me know if it still happens when you get that update. Thanks for reporting it! |
Built-in commands "show_game_files" and "show_data_files" now open system file dialogs for *nix based systems. The fix is system-agnostic and works on Windows as well. Resolves: #851
show_game_files command seems to error on linux (and likely macos too)
the install directory is usually located at
~/.local/share/Steam/steamapps/common/Stardew Valley/
, as are most steam games on linuxTo Reproduce
0. be on linux
show_game_files
below is a screenshot of the log and was the only command ran
https://i.imgur.com/NT2UMWX.png
The text was updated successfully, but these errors were encountered: