You are here

No splash screen --> mouse wait cursor problem

8 posts / 0 new
Last post
Xandl
Offline
Last seen: 1 year 10 months ago
Joined: 2009-01-07 18:41
No splash screen --> mouse wait cursor problem

Hello,
I have a question regarding the no splash screen option.
Turning off the splash screen worked, but instead I get
a mouse wait cursor, after the app started, for about 5 seconds.
I tried this with Sumatra 0.9.4 and WinDirStat 1.1.2.80,
both with the same result.
This also happens, when the program is started and stopped
a few times in a row, so something should be cached by windows.
I do not know, why there is a mouse wait cursor, because these
are small apps that usually start very fast, and do not do this
without the PA launcher.

Now my question: what does the system do, while showing the mouse wait cursor?

Starting the applications with splash screen do not show the mouse
wait cursor for about 5 seconds.
So I do not understand this.

Steps to reproduce:
Simply create a file named "SumatraPDFPortable.ini" in the directory
where the launcher resides (i.e. x:\PortableApps\SumatraPDFPortable)
with these two lines:
-----------------------------------
[SumatraPDFPortable]
DisableSplashScreen=true
-----------------------------------

The same applies to WinDirStat.

Thanks for your answer,
Xandl

gluxon
gluxon's picture
Offline
Last seen: 3 years 8 months ago
Developer
Joined: 2008-06-21 19:26
Is it just these two

Is it just these two Apps?

And could you give us your system details?

It could be that your temp folder is locked or something.

Xandl
Offline
Last seen: 1 year 10 months ago
Joined: 2009-01-07 18:41
Hello, -- Is it just these

Hello,

-- Is it just these two Apps?

no, the same applies to i.e. Notepad++.
To see this effect, just create a file named
x:\PortableApps\Notepad++Portable\Notepad++Portable.ini
containing these two lines:
------------------------------------
[Notepad++Portable]
DisableSplashScreen=true
------------------------------------
Starting Notepad++Portable.exe now, shows the mouse wait cursor
for about 5 sec, if you hover above the Notepad++ menu or beside
the application. Hovering above the edit field shows the text
cursor. The application is completely operational during the
mentioned 5 seconds.
Now rename "Notepad++Portable.ini" to i.e. "Notepad++Portable.in"
and start Notepad++Portable.exe again. You will see the splash
screen for less than 5 sec, but no mouse wait cursor.
This is what confuses me.

I did not test all applications, but it seems to have to do
with the launcher.

-- And could you give us your system details?

This was tested on Win XP SP3, with recent patches.
CPU Core2 Duo, 3 GHz.
3 GB RAM.

-- It could be that your temp folder is locked or something.

I do not think so, because renaming the ini file changes the
mouse wait cursor behavior, as described above.

Thanks for your answer,
Xandl

prapper
Offline
Last seen: 3 years 3 months ago
Developer
Joined: 2008-01-24 17:01
It happens with all the apps.

It happens with all the apps. Turn the splash off in the launcher instead eg;

Change this...

newadvsplash::show /NOUNLOAD 1200 0 0 -1 /L $PLUGINSDIR\splash.jpg

To this...

newadvsplash::show /NOUNLOAD 0 0 0 -1 /L $PLUGINSDIR\splash.jpg

then re-compile with NSIS. Make a backup first :-)

Xandl
Offline
Last seen: 1 year 10 months ago
Joined: 2009-01-07 18:41
Hello, looks good, thank

Hello,

looks good, thank you.
Maybe just remarking this line will help, too.
I just hope to find the necessary files, never tried to compile a launcher.
Looks like the simple ini file method is not a perfect solution.
I hope another launcher developer joins the thread to clear up the case. Since there is a variable for this, it should work without issues.

Thank you,
Xandl

prapper
Offline
Last seen: 3 years 3 months ago
Developer
Joined: 2008-01-24 17:01
I found that remarking

I found that remarking any/all the splash stuff out of a launcher didn't work. The only way to make the 'disable splash' thing work as expected with the ini was to remark out this line...

SilentInstall Silent

But then the launcher isn't silent :-)

Personally, I like the splash, so I never investigated further. It would be interesting to know though...

Xandl
Offline
Last seen: 1 year 10 months ago
Joined: 2009-01-07 18:41
You are right, setting the

You are right,

setting the delay parameter to 0 perfectly works.
Simply remarking the line does not show the splash screen, but again shows the wait cursor for about 5 seconds.
While this works as desired, I would prefer the ini based approach as it seems to be a cleaner solution. Maybe someone wants to take a look at the launcher, to make it more perfect.

merci again,
Xandl

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Windows

It's to do with how Windows perceives what the program is doing. It sees that the launcher is doing things, but has not provided a window which is "doing the working", so it signals the background activity cursor. With the splash screen on - even if it appears for 0ms - it doesn't see a need to tell the user something's happening, the window's doing that.

This is not an issue at all really, just a picky point... which is in common with all Windows applications. Think of it as the bounce thing on OS X's program launch bar thingy - it keeps on bouncing until a window appears for the program. So some applications only bounce once, and a window appears (almost) instantly, and some applications take 50, 60, 70, 80 bounces (as InDesign did today at school!) before they even show a splash screen or program window.

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

Log in or register to post comments