This behaviour has been added with the migration to Wayland only, instead of keeping support for X11, as discussed here.
But because this has been bugging me too, and I still use X11, I reverted the commits in question:
Similar as here explained, you need to revert commits C1, C2 and finally, most importantly C3.
My patchfile for Gedit 40.1 you can find in ...
If you meant open a file when you log in, then you could use the "Startup Applications", choose add a program and on the command field you type gedit /path/to/file. You could also add the startup action via terminal by doing the following:
echo '[Desktop Entry]
Sometimes, application configuration data may get messed up and this may have adverse effects on application startup. For example, they may contain some references to network resources that are no longer available.
The gedit application seems to have three places that keep some configuration and application data:
The $HOME/.config/gedit directory contains ...
Aside from Python 1.x being completely irrelevant these days (do you expect the "Python console" in gedit to run Python 1?), if you need confirmation, here's the defining line for "Python" in the GtkSourceView source code:
<language id="python3" name="Python" version="2.0" _section="Script">
The favourite's icon will be in usr/share/applications/org.gnome.gedit.desktop. At least that's where it is in my 20.04 load. You can edit the 'Name' to show anything you want for when the mouse hovers over it.
If you start gedit, then an untitled document will open. The window will open with the tabs 'open' a '+' sign, 'untitled document', 'save' and 3 ...