aboutsummaryrefslogtreecommitdiff
path: root/Program.cs
diff options
context:
space:
mode:
authorDemonKingSwarn <rockingswarn@gmail.com>2025-11-10 15:30:15 +0530
committerDemonKingSwarn <rockingswarn@gmail.com>2025-11-10 15:30:15 +0530
commit80ba776bfae57f2622caa0ecf8a5eb3821ab08b0 (patch)
treed769b644d47c4e19126c4b1b26dd7d14fed90987 /Program.cs
parenta98522b15e3819a5172a8a97b2057cb7c0c1196f (diff)
downloadhypr-wellbeing-80ba776bfae57f2622caa0ecf8a5eb3821ab08b0.zip
hypr-wellbeing-80ba776bfae57f2622caa0ecf8a5eb3821ab08b0.tar.gz
chore: widnows support added
Diffstat (limited to 'Program.cs')
-rw-r--r--Program.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Program.cs b/Program.cs
index de14dd3..7428c9f 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,5 +1,6 @@
using System.IO;
using System.Runtime.InteropServices;
+using Newtonsoft.Json;
using hyprwatch.Logger;
using hyprwatch.Report.Weekly;
@@ -7,11 +8,18 @@ class Program
{
static void Main(string[] args)
{
+ string os;
+
string version = "0.0.7";
string homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
+ string configDir = Path.Combine(homeDirectory, ".config", "hypr-wellbeing");
+ string configFile = Path.Combine(configDir, "config.json");
string hyprwatchDirectory = Path.Combine(homeDirectory, ".cache", "hyprwatch");
string dailyDataDirectory = Path.Combine(hyprwatchDirectory, "daily_data");
Directory.CreateDirectory(dailyDataDirectory);
+ Directory.CreateDirectory(configDir);
+
+
if (args.Length == 0 || args[0] != "-d" && args[0] != "--show" && args[0] != "--weekly" && args[0] != "-v")
{