2022-07-06 17:51:51 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include "gui.h"
|
|
|
|
#include "arguments.h"
|
|
|
|
|
2022-07-08 16:45:45 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2022-07-06 17:51:51 +00:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2022-07-18 12:01:15 +00:00
|
|
|
if (argc > 1)
|
|
|
|
settingsLoad(argv[1]);
|
|
|
|
else
|
|
|
|
settingsLoad("/etc/freerdp/freerdp.db");
|
2022-07-06 17:51:51 +00:00
|
|
|
|
|
|
|
IupOpen(&argc, &argv);
|
|
|
|
|
|
|
|
IupShowXY(guiStart(), IUP_CENTER, IUP_CENTER);
|
|
|
|
IupMainLoop();
|
|
|
|
|
|
|
|
IupClose();
|
|
|
|
|
|
|
|
settingsFree();
|
|
|
|
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|