Help needed to work with wine prefixes

Questions about Wine on Linux
Locked
shag00
Level 3
Level 3
Posts: 50
Joined: Mon Sep 11, 2017 11:04 pm

Help needed to work with wine prefixes

Post by shag00 »

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
Level 2
Posts: 23
Joined: Mon Aug 30, 2021 2:14 am

Re: Help needed to work with wine prefixes

Post by daveweaton »

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
Level 3
Posts: 50
Joined: Mon Sep 11, 2017 11:04 pm

Re: Help needed to work with wine prefixes

Post by shag00 »

It is located in the same folder as dtshd.exe:
/home/scott/.winedts/drive_c/"Program Files"/DTS/MAS-SAS/
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help needed to work with wine prefixes

Post by dimesio »

shag00
Level 3
Level 3
Posts: 50
Joined: Mon Sep 11, 2017 11:04 pm

Re: Help needed to work with wine prefixes

Post by shag00 »

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.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Help needed to work with wine prefixes

Post by dimesio »

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
Level 3
Posts: 50
Joined: Mon Sep 11, 2017 11:04 pm

Re: Help needed to work with wine prefixes

Post by shag00 »

@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?
Locked