You are here

SplashTime, LaunchAppAfterSplash, and CloseEXE ignored when opening multiple files

3 posts / 0 new
Last post
daniel_schaaaf
Offline
Last seen: 2 weeks 3 days ago
Joined: 2021-10-07 03:12
SplashTime, LaunchAppAfterSplash, and CloseEXE ignored when opening multiple files

A while ago, I filed a bug report for SumatraPDF (https://portableapps.com/node/65018). When I open multiple files, by marking them in Windows Explorer and pressing the Return key, SumatraPDF will overwrite its settings with a default version.

I experimented with \SumatraPDFPortable\App\AppInfo\Launcher\SumatraPDFPortable.ini and added the following parameters to [Launch]:
SplashTime=2000
LaunchAppAfterSplash=true
CloseEXE=%PAL:PortableAppsDir%\SumatraPDFPortable.exe

These parameters are ignored when I open multiple files!
Apparently, SumatraPDF (D:\PortableApps\PortableApps\SumatraPDFPortable\App\SumatraPDF\SumatraPDF64.exe) gets launched immediately, before the launcher can copy the settings from \Data to \App.
I searched the registry, and all file associations only point to the launcher (D:\PortableApps\PortableApps\SumatraPDFPortable\SumatraPDFPortable.exe).

I also opened multiple files from the command prompt (SumatraPDFPortable test1.cbr test2.cbr), and everything works as expected; SumatraPDF launches after 2 seconds, it opens the two files, and it gets the correct settings from \Data.

Is this a bug in the SumatraPDF package, or a general bug?

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 33 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Likely General

You're basically launching 3 copies of SumatraPDFPortable.exe at the same time and they're stepping all over each other as they attempt to move the file back and forth. Essentially, the launcher isn't built or tested for what you're trying to do at the moment.

Sometimes, the impossible can become possible, if you're awesome!

daniel_schaaaf
Offline
Last seen: 2 weeks 3 days ago
Joined: 2021-10-07 03:12
Oh, I always thought opening

Oh, I always thought opening multiple files from Windows Explorer would open the associated program only once, and pass through the list of files.
Strangely, only SumatraPDF seems to have that particular problem. But I might have found a solution. I will post it in the respective thread in "Office Apps Support" ...

Log in or register to post comments