Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-03-04 19:50:19

izghitu
Member
Registered: 2013-03-04
Posts: 9

autorun script in xfce

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

#2 2013-03-04 21:17:37

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: autorun script in xfce

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

#3 2013-03-04 22:16:56

izghitu
Member
Registered: 2013-03-04
Posts: 9

Re: autorun script in xfce

Can you please tell me how would I do it by editing config files via ssh?

Thanks

Offline

#4 2013-03-05 03:23:02

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: autorun script in xfce

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

#5 2013-03-05 03:25:08

ozjd
Member
From: Hawkesbury NSW Australia
Registered: 2012-02-05
Posts: 560
Website

Re: autorun script in xfce

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

#6 2013-03-05 03:33:17

izghitu
Member
Registered: 2013-03-04
Posts: 9

Re: autorun script in xfce

Thanks a lot for your help

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 7 queries executed - Memory usage: 534.3 KiB (Peak: 535.14 KiB) ]