You are not logged in.

#1 2009-04-14 17:12:59

alleluia20
Member
Registered: 2009-04-13
Posts: 53

Howto: Autostart in KDE4

Hello,

My script  ~/.kde4/Autostart/autostart.sh is not run in my Arch box (and the user has permissions to execute it). Is this a known problem? How can I debug/solve it?

Thank you.

Last edited by alleluia20 (2009-04-15 02:21:10)

Offline

#2 2009-04-15 02:20:34

alleluia20
Member
Registered: 2009-04-13
Posts: 53

Re: Howto: Autostart in KDE4

I found it out. Things have changed from KDE3. Here I copy a mail from the KDE mail list:

~/.kde4/Autostart is a container for .desktop files, not shell scripts.
You'll need to write a .desktop file that has your shell script on the Exec
line if you want to use Autostart.

You might want to use ~/.kde4/env instead.  It is a container for files that
are sourced (run in the current shell environment) during kde session
startup.

IIRC, anything done from .kde4/env should not expect kded-type services
running, where as ~/.kde4/Autostart can depend on those services.

I use both for my purposes.  A script in env to start ssh/gpg agents and set
environment variables.  A script in Autostart to load my keys, asking for
passwords with graphical dialogs.

Offline

#3 2009-04-15 07:56:52

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Howto: Autostart in KDE4

you guys know that there is a helper applications in systemsettings called "Autostart"? smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#4 2009-04-15 16:03:07

alleluia20
Member
Registered: 2009-04-13
Posts: 53

Re: Howto: Autostart in KDE4

I do not see such option hmm

Offline

#5 2009-04-15 16:45:47

Skripka
Member
From: 2X1280X1024
Registered: 2009-02-19
Posts: 555

Re: Howto: Autostart in KDE4

Rasi wrote:

you guys know that there is a helper applications in systemsettings called "Autostart"? smile

I never could get that helper to work as advertised.

Offline

#6 2009-11-22 00:50:49

cormanthor
Member
Registered: 2009-11-21
Posts: 10

Re: Howto: Autostart in KDE4

alleluia20 wrote:

I do not see such option hmm

Check out the "Advanced" tab, first option. Buttons to add programs and scripts are on the right side.

Offline

#7 2009-11-22 05:23:07

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Howto: Autostart in KDE4

I find that the Autostart in System Settings I'm pretty much able to do what I want by choosing the .desktop file I want and adding the features I need:

sleep 4 && gmm --tray

or

nvidia-settings -l

Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB