SingleApplication

Qt Components

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
Score 58.0%
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:

11 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

10 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

10 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

10 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

10 years ago

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

Report

thzs

11 years ago

Hi,

nice work!

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

Report

C

xep

11 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

11 years ago

Now SA must work under MacOS.

regards

Report

s-valve

10 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

11 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

11 years ago

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

Report

11 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.

12345678910
1
product-maker pbe78 Apr 18 2016 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
pbe78
Apr 18 2016
topix93
Nov 26 2013
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.0
updated Nov 29 2008
added May 16 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 4
System Tags