Handle default wine prefix for path conversions
This commit is contained in:
@@ -310,7 +310,8 @@ Public Class mgrPath
|
|||||||
oMatch = oParse.Match(sPsinfo)
|
oMatch = oParse.Match(sPsinfo)
|
||||||
Return oMatch.Value.Trim("/").Split("=")(1)
|
Return oMatch.Value.Trim("/").Split("=")(1)
|
||||||
Else
|
Else
|
||||||
Return String.Empty
|
'When WINEPREFIX is not part of the command, we will assume the default prefix.
|
||||||
|
Return Environment.GetFolderPath(Environment.SpecialFolder.Personal) & "/.wine"
|
||||||
End If
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
mgrCommon.ShowMessage(mgrPath_ErrorWinePrefix, ex.Message, MsgBoxStyle.Exclamation)
|
mgrCommon.ShowMessage(mgrPath_ErrorWinePrefix, ex.Message, MsgBoxStyle.Exclamation)
|
||||||
|
|||||||
Reference in New Issue
Block a user