Feature Request: Prevent Multiple Instances
Moderators: fgagnon, nikos, Site Mods
-
Thracx
- Silver Member

- Posts: 263
- Joined: 2004 Nov 05, 19:33
Feature Request: Prevent Multiple Instances
I would like to dis-allow second xplorer2 instances. Having them all share the same process is nice (and the ability to have them run in seperate processes is even greater), but I would like it if any second running of xplorer2 (even if only by a cmdLine argument) would simply 'Show' the first instance instead of creating a new one. I couldn't find this feature, but if it does exist, please let me know!
-Thracx
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
-
Robert2
- Gold Member

- Posts: 705
- Joined: 2004 Jun 17, 15:39
Re: Feature Request: Prevent Multiple Instances
Greetings--Thracx wrote:I would like to dis-allow second xplorer2 instances. Having them all share the same process is nice (and the ability to have them run in seperate processes is even greater), but I would like it if any second running of xplorer2 (even if only by a cmdLine argument) would simply 'Show' the first instance instead of creating a new one. I couldn't find this feature, but if it does exist, please let me know!
Control Runner is a shareware button program launcher. Each button can be configured to allow “Only one copy” of the launched program. If the program is already running, its window is simply brought to the forefront. If the program is not running yet, it is launched. Of course, the program has to be re-launched from Control Runner for this feature to work.
Available from http://www.momsoftco.com
Cheers
Robert
-
Thracx
- Silver Member

- Posts: 263
- Joined: 2004 Nov 05, 19:33
Re: Feature Request: Prevent Multiple Instances
Thanks Robert, but I prefer to avoid using other apps for minor purposes. I've managed to control xplorer2 using Girder in a manner that is satisfactory, so I'll manage. Thanks for the pointer though, I'll keep a note about that app!
I don't understand, why not? All you have to do is upon startup, check for another instance of xplorer2 (via classname or whatever). If xplorer2 finds one, it knows its a duplicate instance and can exit (if the said option has been selected, of course). As I mentioned above, I got Girder to control xplorer2 towards my liking, so if no one else wants this, it isn't needed. I would like to know why you think it isn't possible though! Is there something I'm missing?nikos wrote:this isn't possible
-Thracx
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
-
JRz
- Gold Member

- Posts: 560
- Joined: 2003 Jun 10, 23:19
- Location: NL
Thracx, if Nikos would implement your wish, it would mean other features would have to change. Now a second instance (read: thread, not process!) is spawned when you run X² for the 'second' time (and third, and so on).
So, that's probably the main reason Nikos doesn't grant you your wish (at least for now)
But I'll try to support your wish!
Nikos, wouldn't it be possible (in the next release of course) to make this a user preference too? Just make a switch which controls whether:
- new instances are spawned when the .exe is run for second and subsequent times
- the existing thread is brought to front. No extra thread is started
Both situations only applicable when X² is already running of course (X² should behave the same as it does now when started from scratch, regardless the setting of the switch)
This will solve some others (older) posters 'problems' with respect to X² always spawning an extra thread too
So, that's probably the main reason Nikos doesn't grant you your wish (at least for now)
But I'll try to support your wish!
Nikos, wouldn't it be possible (in the next release of course) to make this a user preference too? Just make a switch which controls whether:
- new instances are spawned when the .exe is run for second and subsequent times
- the existing thread is brought to front. No extra thread is started
Both situations only applicable when X² is already running of course (X² should behave the same as it does now when started from scratch, regardless the setting of the switch)
This will solve some others (older) posters 'problems' with respect to X² always spawning an extra thread too
Dumb questions are the ones that are never asked 
-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
coming fresh from a shareware conference, and seeing how other successful programs work, there's always a battle between customizability and getting overly complicated to setup
not only i don't consider adding features to x2, i even consider breaking it up in 5-10 task-specific tools
i've seen people selling successfully stuff that are just one command in x2's menu system and charging more than i charge for the whole program!
surely i must be missing something here
fasten your seat-belts for mass changes ahead
not only i don't consider adding features to x2, i even consider breaking it up in 5-10 task-specific tools
i've seen people selling successfully stuff that are just one command in x2's menu system and charging more than i charge for the whole program!
surely i must be missing something here
fasten your seat-belts for mass changes ahead
-
JRz
- Gold Member

- Posts: 560
- Joined: 2003 Jun 10, 23:19
- Location: NL
No worries, I like little crispy tools that do the job they are intended to do quickly and without hassle.
It's hard to keep X² from becoming a monster unless you keep to the essentials. I agree!
We'll see what you have in mind in the near future Nikos, I have no doubt about that (and you have my support, limited as it may be
)
It's hard to keep X² from becoming a monster unless you keep to the essentials. I agree!
We'll see what you have in mind in the near future Nikos, I have no doubt about that (and you have my support, limited as it may be
Dumb questions are the ones that are never asked 
-
Thracx
- Silver Member

- Posts: 263
- Joined: 2004 Nov 05, 19:33
Very hard - so good luck! Every user is going to want X² to do exactly what they want it to and preferably nothing else - its very hard to manage that and keep the app small!JRz wrote:It's hard to keep X² from becoming a monster unless you keep to the essentials. I agree!
Man, you make it sound like I'm demanding this feature and will kill if I don't get it! I'm just getting suggestions out there, whatever Nikos decides to impliment and not to impliment is fine with me. Go and read my first post in this forum - I'm more than happy with what X² is right now (I bought it, didn't I?). I had been looking for something like v1.1 for at least 2 years to no avail, to have finally found a file manager worth something is all I needed!JRz wrote:Thracx, if Nikos would implement your wish...
JRz, well said - you clarified my suggestion nicely.JRz wrote:Nikos, wouldn't it be possible (in the next release of course) to make this a user preference too? Just make...
-Thracx
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
-
JRz
- Gold Member

- Posts: 560
- Joined: 2003 Jun 10, 23:19
- Location: NL
Just tried to give you more info on whether your 'demand'Thracx wrote:[...]Man, you make it sound like I'm demanding this feature and will kill if I don't get it! I'm just getting suggestions out there, whatever Nikos decides to impliment and not to impliment is fine with me. [...]JRz wrote:Thracx, if Nikos would implement your wish...
Dumb questions are the ones that are never asked 
-
chp
- Bronze Member

- Posts: 70
- Joined: 2004 Jan 27, 07:56
You've made Tabs, so let's consider CloneBrowse overly complicated then ;)overly complicated to setup
Hope it doesn't mean you gonna make another set of find / rename / browseflat programs INSTEAD of x2 :(not only i don't consider adding features to x2, i even consider breaking it up in 5-10 task-specific tools
Making a good thing and selling a good thing isn't a same thing most of times thesedays :(i've seen people selling successfully stuff that are just one command in x2's menu system and charging more than i charge for the whole program!
Too complicated - scary for some, more versions - multiple work, no lite version - no promotion..
Best of luck in all plans you've got!
-
nikos
- Site Admin

- Posts: 16401
- Joined: 2002 Feb 07, 15:57
- Location: UK
-
Thracx
- Silver Member

- Posts: 263
- Joined: 2004 Nov 05, 19:33
Quite an understatement! heh.. People always talk about the evil and greedy buisness, without realizing that it boils down to the relentless and greedy customer! It is annoying, but good products don't sell - only well-marketed products sell.nikos wrote:nothing in sales is simple
More good news!nikos wrote:x2 will continue to exist of course, no matter what
-Thracx
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen
"Man wants to know, and when he ceases to do so, he is no longer a man."
-Fridtjof Nansen