Single instance pipe mode

So you have written that new, must have program. Let us see it here.
Post Reply
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Single instance pipe mode

Post by BruceSteers »

Here's another example of running a single instance app.

This time using a less complicated pipe file rather than the server socket the last example used..
I've refined it a bit as i've just added this feature to my script editor.

included is a test script that first simply launches the app with 2 args that are displayed in the list view.
Then it launches the app 3 times simultaneously with a different arg for each but the app only launches once and the other 2 launches send their args to the 1st instance via the pipe file.

Hoping it may help some.

Bruce.
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1523
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Single instance pipe mode

Post by BruceSteers »

This is especially useful if you have an app you can drag and drop files onto the icon.

If you drag and drop more than one file on to the app icon linux launches the app multiple times with one arg rather than once with multiple args.
If at first you don't succeed , try doing something differently.
BruceS
Post Reply