Single instance attempt
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sat, 3 Sep 2011 16:25:30 +0000 (19:25 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sat, 3 Sep 2011 16:26:12 +0000 (19:26 +0300)
Does not start from the lauancher icon anymore

ghostsoverboard.desktop
ghostsoverboard.pro
main.cpp
qtc_packaging/debian_harmattan/rules

index 3014875..22544f0 100644 (file)
@@ -4,7 +4,7 @@ Version=1.0
 Type=Application
 Terminal=false
 Name=Ghosts Overboard
-Exec=/opt/usr/bin/ghostsoverboard
+Exec=invoker --single-instance --type=d /opt/ghostsoverboard/bin/ghostsoverboard
 Icon=ghostsoverboard
 X-Window-Icon=ghostsoverboard
 X-HildonDesk-ShowInToolbar=true
index 8779bb6..6072405 100644 (file)
@@ -49,7 +49,7 @@ unix:!symbian {
     maemo5 {
         target.path = /opt/usr/bin
     } else {
-        target.path = /usr/local/bin
+    target.path = /opt/ghostsoverboard/bin
     }
     INSTALLS += target
 }
index 6f7a93a..c8c2ae6 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -23,7 +23,7 @@
 #include <QtGui/QApplication>
 #include "seaview.h"
 
-int main(int argc, char *argv[])
+Q_DECL_EXPORT int main(int argc, char *argv[])
 {
     QApplication a(argc, argv);
     a.setApplicationName("Ghosts Overboard");
index 5497d44..b601ba8 100755 (executable)
@@ -38,7 +38,7 @@ clean:
        rm -f build-stamp configure-stamp
 
        # Add here commands to clean up after the build process.
-       $(MAKE) clean
+       $(MAKE)  clean
 
        dh_clean