windows changes

This commit is contained in:
2025-11-27 09:43:32 +01:00
parent 5023b63a7e
commit 441e903c67
12 changed files with 137 additions and 27 deletions

View File

@@ -20,13 +20,26 @@ static void activate (GtkApplication* app, gpointer user_data)
g_signal_connect(tray, "activate", on_tray_activate, notes);
}
static int runMain(int argc, char **argv);
#ifdef _WIN32
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
return runMain(__argc, __argv);
}
#else
int main(int argc, char **argv)
{
return runMain(argv, argv);
}
#endif
int runMain(int argc, char **argv)
{
GtkLoader l;
InfoOverMe w;
std::cout << w.myOsHostname() << std::endl;
srand(time(NULL)); // seed with current time
std::string my_path = w.containingFolder();