fix: Public directory is PUBLICSHARE, not PUBLIC

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-06-18 22:55:58 +02:00
parent 808f29e866
commit e53f492344
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
3 changed files with 4 additions and 4 deletions

View file

@ -96,7 +96,7 @@ internal static partial class Exports
}
}
[UnmanagedCallersOnly(EntryPoint = "xdg_public_dir")]
[UnmanagedCallersOnly(EntryPoint = "xdg_publicshare_dir")]
public static IntPtr Public()
{
try

View file

@ -46,7 +46,7 @@ xdg_directory xdg_videos_dir(void);
xdg_directory xdg_templates_dir(void);
xdg_directory xdg_public_dir(void);
xdg_directory xdg_publicshare_dir(void);
// Frees the directory object.
void xdg_free(xdg_directory);

View file

@ -120,7 +120,7 @@ public class UserDirectory_Test
[TestMethod, TestCategory("PublicDir")]
public void PublicDir_MacOS_Default()
{
Helper.Prepare("XDG_PUBLIC_DIR", null, "MacOS");
Helper.Prepare("XDG_PUBLICSHARE_DIR", null, "MacOS");
Assert.AreEqual($"{Other.Home}/Public", UserDirectory.PublicDir);
}
}
@ -180,7 +180,7 @@ public class UserDirectory_Test
[TestMethod, TestCategory("PublicDir")]
public void PublicDir_Linux_Default()
{
Helper.Prepare("XDG_PUBLIC_DIR", null, "Linux");
Helper.Prepare("XDG_PUBLICSHARE_DIR", null, "Linux");
Assert.AreEqual($"{Other.Home}/Public", UserDirectory.PublicDir);
}
}