Browse Source
Exclude snap directories in dev mount.
pull/3345/head
Jumar Macato
6 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
1 changed files with
2 additions and
1 deletions
-
src/Avalonia.FreeDesktop/LinuxMountedVolumeInfoListener.cs
|
|
|
@ -47,7 +47,8 @@ namespace Avalonia.FreeDesktop |
|
|
|
|
|
|
|
var fProcMounts = File.ReadAllLines(ProcMountsDir) |
|
|
|
.Select(x => x.Split(' ')) |
|
|
|
.Select(x => (x[0], x[1])); |
|
|
|
.Select(x => (x[0], x[1])) |
|
|
|
.Where(x => !x.Item2.StartsWith("/snap/", StringComparison.InvariantCultureIgnoreCase)); |
|
|
|
|
|
|
|
var labelDirEnum = Directory.Exists(DevByLabelDir) ? |
|
|
|
new DirectoryInfo(DevByLabelDir).GetFiles() : Enumerable.Empty<FileInfo>(); |
|
|
|
|