- Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
23 lines (19 loc) · 419 Bytes
/
Copy pathmain.cpp
File metadata and controls
23 lines (19 loc) · 419 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<QApplication>
#include"constants.hpp"
#include"MainDialog.hpp"
intmain(int argc, char *argv[])
{
char *passwd = getenv("GLACJAY_SSHPROXY_PASSWORD");
if (passwd && strlen(passwd))
{
printf("%s\n", passwd);
exit(0);
}
QApplication app(argc, argv);
MainDialog dlg;
dlg.show();
return app.exec();
}