SingleApplication
Qt Components
Score 72%
Description:

The SingleApplication component provides support for applications that can be
only started once per user.

For some applications it is useful or even critical that they are started only once by any user.
Future attempts to start the application should activate any already running instance,
and possibly perform requested actions, e.g. loading a file, in that instance.

The SingleApplication class provides an crossplatform interface to detect a running instance,
and to send command strings to that instance.

The SingleApplication component is basically imitating QtSingleApplication commercial class.
Unlike QtSingleApplication the SingleApplication implementation uses Shared Memory
to detect a running instance and so-called "Local Sockets" to communicate with it.

SingleApplication might be usable in all environments where you find Qt4.
SingleApplication requires Qt 4.4.x or newer.
Last changelog:

9 years ago

version 1.0: 2008-11-30
[*] Initial stable version 1.0.[newline]
Note: version 1.0 is binary incompatible with any previous version.

s-valve

8 years ago

If the application crashes on Linux or Mac OS X it is no more possible to restart the app until the user logs out. I suppose that some memory is not deleted and the process is still detected.

Report

C

xep

8 years ago

it can be a Qt-related issue. i don't remember where is exactly i met this problem.

anyway, SA isn't supported any longer since QtSingleApplication was re-licensed under lgpl.

probably i can release "last" version with several minor fixes some later...i'm not sure...

Report

s-valve

8 years ago

Hello xep,

thanks for your reply. I use now QtSingleApplication. It is also not completely Mac OS X compilant but it's ok for me. sry.

brgds, m

Report

agnitsarkar

8 years ago

Thnx for the component. It simplified my work a lot.

Report

thzs

8 years ago

Hi,

nice work!

Unfortunately it does not compile on Mac OS X since it has no semtimedop() function.

Report

C

xep

8 years ago

eah, I know. neither semtimedop(...), nor sem_timedwait(...) function(s) - just nothing :(
/* f&ucking mac */
Discrepancy to posix standards makes me crazy.

I plan to bypass that problem some later.

thnx for comment

Report

C

xep

8 years ago

Now SA must work under MacOS.

regards

Report

s-valve

8 years ago

Doesn't work under Mac OS X.
I'm using Mac OS 10.5.7 and Qt4.5.1.
It seems that no message is sent.

brgds

Report

dschulz

9 years ago

I've been looking for a solution like this for a long time. I've seen the examples a few sec ago and must say..
SUPER! :)


Report

netcelli

9 years ago

Good work m8; I will have a look on it ;)

Report

9 years ago

version 1.0: 2008-11-30
[*] Initial stable version 1.0.[newline]
Note: version 1.0 is binary incompatible with any previous version.

product-maker pbe78 Apr 18 2016

product-maker 10 34

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.0
updated Nov 29 2008
added May 16 2008
downloads today
0
page views today 1