Questions about Wine on Linux
shag00
Level 3
Posts: 50 Joined: Mon Sep 11, 2017 11:04 pm
Post
by shag00 » Mon Mar 21, 2022 6:15 pm
I have a program in it's own wine prefix which works correctly when started from within it's directory:
Code: Select all
[color=#00FF00][color=#00BF00]scott@scottubuntu:~/.winedts/drive_c/Program Files/DTS/MAS-SAS$[/color][/color] WINEPREFIX=/home/scott/.winedts wine /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe
If however, I try and start it from anywhere else I get an error: Unable to access jarfile DTSEncoder.jar. I have tried the following 3 commands:
Code: Select all
[color=#00BF00]scott@scottubuntu:~$[/color] WINEPREFIX=/home/scott/.winedts wine /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe
[color=#00BF00]scott@scottubuntu:~$[/color] env /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS; WINEPREFIX=/home/scott/.winedts wine /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe
[color=#00BF00]scott@scottubuntu:~$[/color] sh -c /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS; WINEPREFIX=/home/scott/.winedts wine /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe
It appears that I am unable to properly set the WINEPREFIX. Does anyone have any suggestions?
daveweaton
Level 2
Posts: 23 Joined: Mon Aug 30, 2021 2:14 am
Post
by daveweaton » Mon Mar 21, 2022 8:58 pm
where is the DTSEncoder.jar located? It may a path issue since when you set your default to the path it runs but otherwise not.
shag00
Level 3
Posts: 50 Joined: Mon Sep 11, 2017 11:04 pm
Post
by shag00 » Tue Mar 22, 2022 2:47 am
It is located in the same folder as dtshd.exe:
/home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/
shag00
Level 3
Posts: 50 Joined: Mon Sep 11, 2017 11:04 pm
Post
by shag00 » Tue Mar 22, 2022 7:11 am
Perhaps I did not understand your link and/or it is poorly written or even just incorrect. I tried several variations of the command including:
Code: Select all
WINEPREFIX=/home/scott/.winedts wine start /d "/unix /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe"
wine start /d "/unix /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe"
wine start "/unix /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe"
wine start /d /unix /home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/dtshd.exe
and recieved the following error messages:
ShellExecuteEx failed: Path not found.
ShellExecuteEx failed: Directory name invalid.
dimesio
Moderator
Posts: 13367 Joined: Tue Mar 25, 2008 10:30 pm
Post
by dimesio » Tue Mar 22, 2022 3:15 pm
Try
Code: Select all
WINEPREFIX=/home/scott/.winedts wine start /unix "/home/scott/.winedts/drive_c/Program Files/DTS/MAS-SAS/dtshd.exe"
shag00
Level 3
Posts: 50 Joined: Mon Sep 11, 2017 11:04 pm
Post
by shag00 » Tue Mar 22, 2022 6:57 pm
@dimesio, not sure how I missed that variation but thank you, it works. For info, this invocation of the program (wine start) does not operate exactly the same as cding and wine start.exe, using wine start a new window is created, which is not a terminal window. This seems to have no effect on the program working properly though.
Is there a solved button to push indicating the thread is closed?