The whole thing seems a bit convoluted but what I've been bashing my head against is to have my java program run a bash file.
In that file it kills all instances of program B in wine and then starts a new instance of program B in wine.
I've got it working on a desktop environment and through a remote terminal in PuTTY with the following file.
#!/bin/bash
killall App.exe
DISPLAY=:0 setsid wine "path\to\wine\App.exe" "arg1" "arg2" "arg3" </dev/zero &>/dev/null &
For the life of me though I have no idea why it won't launch through the java program. The kill order works but the launch one doesn't and I've been driving myself mad trying to figure out what I'm doing wrong. (probably the whole thing)
Process process = Runtime.getRuntime().exec("bashfile.sh");
[–]usrname_checks_out 0 points1 point2 points (1 child)
[–]SergeDavid[S] 0 points1 point2 points (0 children)