summaryrefslogtreecommitdiff
path: root/core/tools/quicklauncher/main.cpp
Unidiff
Diffstat (limited to 'core/tools/quicklauncher/main.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/tools/quicklauncher/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/tools/quicklauncher/main.cpp b/core/tools/quicklauncher/main.cpp
index 1d6774c..f3055cc 100644
--- a/core/tools/quicklauncher/main.cpp
+++ b/core/tools/quicklauncher/main.cpp
@@ -30,37 +30,40 @@
30#endif 30#endif
31#define private public 31#define private public
32#include <qtopia/qpeapplication.h> 32#include <qtopia/qpeapplication.h>
33#undef private 33#undef private
34#include <stdio.h> 34#include <stdio.h>
35#include <stdlib.h> 35#include <stdlib.h>
36#include <sys/types.h> 36#include <sys/types.h>
37#include <sys/stat.h> 37#include <sys/stat.h>
38#include <unistd.h> 38#include <unistd.h>
39 39
40#include "dropins.h" 40#include "dropins.h"
41 41
42using QuickPrivate::PluginLoader;
43
42static QPEApplication *app = 0; 44static QPEApplication *app = 0;
43static PluginLoader *loader = 0; 45static PluginLoader *loader = 0;
44static ApplicationInterface *appIface = 0; 46static ApplicationInterface *appIface = 0;
45static QGuardedPtr<QWidget> mainWindow; 47static QGuardedPtr<QWidget> mainWindow;
46 48
47#ifdef _OS_LINUX_ 49#ifdef _OS_LINUX_
48static char **argv0 = 0; 50static char **argv0 = 0;
49static int argv_lth; 51static int argv_lth;
50extern char **environ; 52extern char **environ;
51#ifndef SPT_BUFSIZE 53#ifndef SPT_BUFSIZE
52#define SPT_BUFSIZE 2048 54#define SPT_BUFSIZE 2048
53#endif 55#endif
54#include <stdarg.h> 56#include <stdarg.h>
57using namespace Opie::Ui;
55void setproctitle (const char *fmt,...) { 58void setproctitle (const char *fmt,...) {
56 int i; 59 int i;
57 char buf[SPT_BUFSIZE]; 60 char buf[SPT_BUFSIZE];
58 va_list ap; 61 va_list ap;
59 62
60 if (!argv0) 63 if (!argv0)
61 return; 64 return;
62 65
63 va_start(ap, fmt); 66 va_start(ap, fmt);
64 (void) vsnprintf(buf, SPT_BUFSIZE, fmt, ap); 67 (void) vsnprintf(buf, SPT_BUFSIZE, fmt, ap);
65 va_end(ap); 68 va_end(ap);
66 69