fix linux 'can update'. upgrade aaxclean

This commit is contained in:
Robert McRackan 2023-02-16 07:57:36 -05:00
parent 080a74884d
commit 2f347e83e8
4 changed files with 9 additions and 9 deletions

View file

@ -23,10 +23,10 @@ namespace LinuxConfigApp
public void SetFolderIcon(string image, string directory) => throw new PlatformNotSupportedException();
public void DeleteFolderIcon(string directory) => throw new PlatformNotSupportedException();
//only run the audo updater is the current app was installed from the
//.deb package. Try to detect this by checking if the symlink exists.
public bool CanUpdate => Directory.Exists("/usr/bin/libation");
public void InstallUpdate(string updateBundle)
//only run the audo updater is the current app was installed from the
//.deb package. Try to detect this by checking if the symlink exists.
public bool CanUpdate => Directory.Exists("/usr/lib/libation");
public void InstallUpdate(string updateBundle)
{
RunAsRoot("apt", $"install '{updateBundle}'");
}