Splash screen steals focus

Answered

What I get:

When I start PyCharm the Splash screen starts on top of everything else and I can't change focus away from it.

And since it's there for at least 10 seconds I can't do anything else but sit back or grab coffee.

 

What I want:

No splash screen, or the possibility to alt-tab to another application moving away the splash screen.

 

I found an old post about disbling the splash screen (https://intellij-support.jetbrains.com/hc/en-us/community/posts/206308239-How-to-disable-splash-screen) but I could not get it to work.

Can anyone suggest how to fix?

Related: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206874755-Don-t-steal-focus I'm personally OK with stealing focus at start. The problem I have with the splash screen is that I am Unable to move focus away from it.

 

2
2 comments

> I found an old post about disbling the splash screen (https://intellij-support.jetbrains.com/hc/en-us/community/posts/206308239-How-to-disable-splash-screen) but I could not get it to work.

For me `nosplash` option works well. What result did you have with this option? What OS and PyCharm version do you have? Thank you.

1
Avatar
Permanently deleted user

I spoke too soon. In Ubuntu, I tried:

`$ ./pycharm --nosplash`

and

`$ ./pycharm -nosplash`

 

I did not think to use: 

`$ ./pycharm nosplash`

 

So in Ubuntu (14.04 at least, I'm a little behind, I know) using Unity do this:

1. Find the .desktop file for PyCharm. It should be in `~/.local/share/applications/` (if it is in `/usr/share/applications/` you should probably make a copy into `~/.local/share/applications/` and edit that).

2. Make a backup copy.

3. Use your preferred plain text editor to open the file. The Exec line looks something like:

`Exec="/home/nikki/bin/pycharm-community-2016.3.1/bin/pycharm.sh" %f`

Add nosplash like so:

`Exec="/home/nikki/bin/pycharm-community-2016.3.1/bin/pycharm.sh" nosplash %f`

Save, log out and log back in (restart will do fine too of course).

Your launcher should now start PyCharm without splash screen.

 

In Windows 10 (admin rights needed):

1. Go to Start menu, find PyCharm (for example, look under recents or type 'jet'). Right click, select Open file location (you might have to go through 'More' first).

2. This opens the file explorer in the folder where the PyCharm exe is. Right click that and go to properties.

3 Under 'Shortcuts' tab, find the target for the PyCharm executable - which will read somethng like (including double quotes) "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.3\bin\pycharm.exe"

4. Add the word nosplash after the closing double quote. Target will now read:

"C:\Program Files (x86)\JetBrains\PyCharm Community Edition 2016.3\bin\pycharm.exe" nosplash

Apply. I'm unsure if you need to log out and log back in again, so if this doesn't work, try that first.

 

Side note on stealing focus: now that I have no warning as to when PyCharm is going to steal focus, it does get annoying. Simply because when it grabs focus it's not done loading by far. I alt-tab away and then 10 seconds later the Tip of the day (which I like to see) steals focus. So it's not so much that PyCharm gets focus, it's that when it does, it's still in an unusable state for quite some time.

1

Please sign in to leave a comment.