Is it possible to have my desktop loaded before login?
- by Dims
I am connecting to the system with Putty (this is Windows SSH client) then running some service in interactive personal mode.
For example this is a script to run freeswitch:
dims@nebulla:~$ cat freeswitch.sh
#!/bin/sh
cd ~/bin/freeswitch/bin
gnome-terminal -e ./freeswitch &
I.e. it is installed in user directory.
Also DISPLAY is set to :0
The problem is that I can't use this script until login once.
Script responds with
dims@nebulla:~$ ./freeswitch.sh
dims@nebulla:~$ No protocol specified
Failed to parse arguments: Cannot open display:
After login, I can do "Switch user" and see login screen but script will be able to run since desktop exists.
My question is: is it possible to "preload" my desktop, so that initial situation was as if I loogged in and the went to switch user?