blob: a7b1d56b8f1a843de7776bbf391f8693541f3980 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include <qpe/qpeapplication.h>
#include "sshkeys.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
QPEApplication a(argc, argv);
SSHKeysApp app;
int fd;
/* If we had a controlling TTY, detach from it.
This is to ensure the SSH uses ssh-askpass */
fd = open("/dev/tty", O_RDONLY);
if (fd != -1) {
ioctl(fd, TIOCNOTTY, NULL);
close(fd);
}
a.showMainWidget(&app);
return a.exec();
}
|