summaryrefslogtreecommitdiff
path: root/noncore/settings/sshkeys/main.cpp
authorzecke <zecke>2004-11-15 15:25:22 (UTC)
committer zecke <zecke>2004-11-15 15:25:22 (UTC)
commitef26112d97cd5573642a0f00fd54347229857402 (patch) (side-by-side diff)
treecb62b1e2a6a6a5ccd301fcbb0faac535ff865ee1 /noncore/settings/sshkeys/main.cpp
parent3b935c93d5576e6590ed89c75066983124e2c628 (diff)
downloadopie-ef26112d97cd5573642a0f00fd54347229857402.zip
opie-ef26112d97cd5573642a0f00fd54347229857402.tar.gz
opie-ef26112d97cd5573642a0f00fd54347229857402.tar.bz2
-Remove char cast for homedir but use QFile::encodeName
-Make it quicklaunchable
Diffstat (limited to 'noncore/settings/sshkeys/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sshkeys/main.cpp28
1 files changed, 3 insertions, 25 deletions
diff --git a/noncore/settings/sshkeys/main.cpp b/noncore/settings/sshkeys/main.cpp
index 9f19d0f..d0c0e2b 100644
--- a/noncore/settings/sshkeys/main.cpp
+++ b/noncore/settings/sshkeys/main.cpp
@@ -1,2 +1,2 @@
-/*
+/*
* ssh-agent key manipulation utility
@@ -21,29 +21,7 @@
-#include <qpe/qpeapplication.h>
+#include <opie2/oapplicationfactory.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;
+OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<SSHKeysApp> )
- /* If we had a controlling TTY, detach from it.
- This is to ensure that 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();
-}