Переглянути джерело

Added comment for /etc/os-release file parsing

CPKreuz 11 місяців тому
батько
коміт
7160a1a1b0
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/PixiEditor.Linux/LinuxOperatingSystem.cs

+ 1 - 0
src/PixiEditor.Linux/LinuxOperatingSystem.cs

@@ -46,6 +46,7 @@ public sealed class LinuxOperatingSystem : IOperatingSystem
                 return new LinuxOSInformation(null, null, false);
             }
             
+            // Parse /etc/os-release file (e.g. 'NAME="Ubuntu"')
             var lines = File.ReadAllLines(FilePath).Select<string, (string Key, string Value)>(x =>
             {
                 var separatorIndex = x.IndexOf('=');