Skip to content

New UISharedService rules break MacOS compatibility #25

@ProfessorFartsalot

Description

@ProfessorFartsalot

UISharedService.cs:574 - 576 causes MacOS users to be unable to use Snowcloak. MacOS creates .DS_STORE files, and sometimes Linux itself creates a hidden "lost.dir" folder as well on EXT4 filesystems.

My understanding is that the current service checks for any file that's NOT "subst" which causes people to be unable to use ANY folder considering that EXT4 and MacOS both create hidden metadata files on their filesystems.

The code to be blamed:
if (!_cacheDirectoryHasOtherFilesThanCache && cacheSubDirs.Select(f => Path.GetFileName(Path.TrimEndingDirectorySeparator(f))).Any(f => !f.Equals("subst", StringComparison.OrdinalIgnoreCase)

Furthermore, this also breaks people swapping OSes and reusing the same snowcloak folder, as Snowcloak sees its own shadow and gets scared of itself, meaning six more weeks of winter effectively. 😂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions