You are not logged in.
Pages: 1
Hi,
I need to auto-execute a script just after the xfce loads and auto-logs in using a user.
Can someone please tell me how to do that?
Thanks
Offline
Settings Manager -> Session and Startup -> Application autostart (is where you would add it)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Can you please tell me how would I do it by editing config files via ssh?
Thanks
Offline
You copy the script's desktop file to ~/.config/autostart. If the script that you want to run doesn't have a desktop file, you can create one. Use the following as a template:
[Desktop Entry]
Type=Application
Name=<NAME>
Comment=<COMMENT>
Exec=<EXECUTABLE>
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Doing what ToZ says creates a desktop file in ~/.config/autostart so you can copy a file there with the details of your script. Here is a sample to run Tilda on startup, put the path to your script in the Exec line and change anything else you need.
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Tilda
Comment=Dropdown terminal
Exec=/usr/bin/tilda
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false
Last edited by ozjd (2013-03-05 03:26:05)
Offline
Thanks a lot for your help
Offline
Pages: 1
[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 534.3 KiB (Peak: 535.14 KiB) ]