diff options
| author | DemonKingSwarn <rockingswarn@gmail.com> | 2025-11-10 16:29:30 +0530 |
|---|---|---|
| committer | DemonKingSwarn <rockingswarn@gmail.com> | 2025-11-10 16:29:30 +0530 |
| commit | 767ecdd9d75a9987ff34f82f67776ba00e5939ec (patch) | |
| tree | 072275bb111db5fc70466af6275aec8d89b2a539 /src/Analysis.cs | |
| parent | bebe517a6ee63452afb8f3fd33379ef092da2cb0 (diff) | |
| download | hypr-wellbeing-767ecdd9d75a9987ff34f82f67776ba00e5939ec.zip hypr-wellbeing-767ecdd9d75a9987ff34f82f67776ba00e5939ec.tar.gz | |
chore: removed windows support
Diffstat (limited to 'src/Analysis.cs')
| -rw-r--r-- | src/Analysis.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Analysis.cs b/src/Analysis.cs index 95a8236..c99d85d 100644 --- a/src/Analysis.cs +++ b/src/Analysis.cs @@ -11,7 +11,8 @@ namespace hyprwatch.Report { public static Dictionary<string, string> FinalReport(string date) { - string path = Environment.GetEnvironmentVariable("HOME") + "/.cache/hyprwatch/daily_data/"; + string homeDir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); + string path = homeDir + "/.cache/hyprwatch/daily_data/"; string filename = Path.Combine(path, date + ".csv"); var report = new Dictionary<string, string>(); @@ -81,7 +82,7 @@ namespace hyprwatch.Report public static void WeeklyLogs(string week) { - string user = Environment.GetEnvironmentVariable("HOME"); + string user = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); string filename = Path.Combine(user, ".cache/Watcher/Analysis/", week + ".csv"); using (var writer = new StreamWriter(filename)) |
