Linux compatability

This commit is contained in:
Michael Bucari-Tovo 2022-07-24 14:18:26 -06:00
parent fe6cfc899b
commit 683c221ca8
6 changed files with 40 additions and 5 deletions

View file

@ -35,7 +35,8 @@ namespace LibationAvalonia.Views
{
// liberated: open explorer to file
var filePath = AudibleFileStorage.Audio.GetPath(libraryBook.Book.AudibleProductId);
if (!Go.To.File(filePath?.ShortPathName))
if (!App.GoToFile(filePath?.ShortPathName))
{
var suffix = string.IsNullOrWhiteSpace(filePath) ? "" : $":\r\n{filePath}";
MessageBox.Show($"File not found" + suffix);