When using SingleAppInstance=true
, is there an alternative to the horrible error message and beep?
Is there any way to get the running instance to come into focus instead, like installed software sometimes does when it only allows one instance?
New: OneLoupe (May 1, 2025), Platform 30.0.2 (Mar 27, 2025)
1,100+ portable packages, 1.2 billion downloads
Ad Free! Please donate today
When using SingleAppInstance=true
, is there an alternative to the horrible error message and beep?
Is there any way to get the running instance to come into focus instead, like installed software sometimes does when it only allows one instance?
SingleAppInstance
is entirely correct in its behaviour: a portable version should definitely not show the user the non-portable version. Consider the purpose ofSinglePortableAppInstance
.I am a Christian and a developer and moderator here.
“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1
The one you're referring to is an app that was setup inproperly in the PAL configuration. It should be configured to launch again and start another copy when you run it again, but it isn't due to an error in the configuration.
These settings are generally only used when the app itself doesn't support being started again. Generally the app itself decides whether to start a new window, bring itself to focus, open another document in another tab, etc. The app that is annoying you is simply misconfigured in its current release.
Sometimes, the impossible can become possible, if you're awesome!
Thanks. I'm actually referring to my own launchers. I have portabalised a couple of programs which I personally only want to ever have one running instance, and would just prefer they came into focus if I try starting them again without realising that they are already running.
It is up to the app itself (not our launcher) to do that. The launcher simply enables the app to do its thing. Nothing more, nothing less. The app itself is in charge of whether it will bring itself into focus, open a new window, open a new tab or nothing. The launcher is not a part of that decision, nor should it be. The SingleAppInstance thing you are referring to is a last-ditch failsafe for apps that don't work right portably with multiple instances.
Sometimes, the impossible can become possible, if you're awesome!
uses SinglePortableAppInstance whereas he is referring to SingleAppInstance.
Sidenote: I already changed it back in my copy for the next version. No revision needed imho.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate