aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/xqtlauncher/xqtlauncher/startxqt
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qtopia/xqtlauncher/xqtlauncher/startxqt')
-rw-r--r--recipes-qtopia/xqtlauncher/xqtlauncher/startxqt15
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes-qtopia/xqtlauncher/xqtlauncher/startxqt b/recipes-qtopia/xqtlauncher/xqtlauncher/startxqt
new file mode 100644
index 0000000..b863c2e
--- /dev/null
+++ b/recipes-qtopia/xqtlauncher/xqtlauncher/startxqt
@@ -0,0 +1,15 @@
+#check if we are already running
+if test -f /var/run/Xqt ;then
+ qcop QPE/TaskBar "message(QString)" "Xqt is already running!"
+else
+ qcop QPE/TaskBar "message(QString)" "start Xqt server..."
+ #create run file
+ touch /var/run/Xqt
+ #setup environment - FIXME: check QTDIR first
+ export QTDIR=/usr/lib/opie
+ export DISPLAY=:0.0
+ #start the server
+ Xqt -fp /usr/lib/X11/fonts/misc
+ #remove run file
+ rm /var/run/Xqt
+fi