And make it executable:
chmod +x /usr/bin/my-gnome-session
Basically this is just all the commands from /usr/share/gnome/autostart. If you have different autostart files then you might want to edit it. Check with grep Exec *.desktop.
*2* Move all the autostart files to a temporary directory:
cd /usr/share/gnome/autostart/
mkdir tmp
mv *.desktop tmp
*3* Create a new file in /usr/share/gnome/autostart/start.desktop:
I have managed to fix it for me with the following trick. Login is now is close to 1 sec.
*1* Create a file /usr/bin/ my-gnome- session with the following contents:
#!/bin/sh canberra- gtk-play --id="desktop- login" --description= "GNOME Login" & gnome-session/ helpers/ at-spi- registryd- wrapper & gnome-session/ helpers/ gnome-keyring- daemon- wrapper & gnome-session/ helpers/ gnome-settings- daemon- helper & vino/vino- server &
gnome-wm &
/usr/bin/
/usr/lib/
/usr/lib/
/usr/lib/
gsynaptics-init --sm-disable &
/usr/lib/
And make it executable: my-gnome- session
chmod +x /usr/bin/
Basically this is just all the commands from /usr/share/ gnome/autostart . If you have different autostart files then you might want to edit it. Check with grep Exec *.desktop.
*2* Move all the autostart files to a temporary directory:
cd /usr/share/ gnome/autostart /
mkdir tmp
mv *.desktop tmp
*3* Create a new file in /usr/share/ gnome/autostart /start. desktop:
[Desktop Entry] bin/my- gnome-session Autostart- Phase=Initializ ation
Name=Auto Start Scripts
Exec=/usr/
OnlyShowIn=GNOME;
Terminal=false
Type=Application
X-GNOME-
------- ------- ------- ------- ------- ------- -------
That's all. I hope this works for you as a temporary fix.