From 767ecdd9d75a9987ff34f82f67776ba00e5939ec Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Mon, 10 Nov 2025 16:29:30 +0530 Subject: chore: removed windows support --- src/Analysis.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Analysis.cs') 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 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(); @@ -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)) -- cgit v1.1