fix: Public directory is PUBLICSHARE, not PUBLIC
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
808f29e866
commit
e53f492344
3 changed files with 4 additions and 4 deletions
|
@ -96,7 +96,7 @@ internal static partial class Exports
|
|||
}
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "xdg_public_dir")]
|
||||
[UnmanagedCallersOnly(EntryPoint = "xdg_publicshare_dir")]
|
||||
public static IntPtr Public()
|
||||
{
|
||||
try
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue