You are not logged in.

#1 2009-05-03 13:11:17

greenfish
Member
From: eating fish in /dev/null
Registered: 2008-08-30
Posts: 229

[SOLVED] autostart kde4/bsd init in general?

Okay.. how on earth do we autostart shell scripts within arch or kde4?

here's what i've tried so far:

placing my shell script in /etc/rc.d (nothing happens)
                                    /etc/rc.local (wont work since my script turns off touchpad and this is before X but hey!)
                                   /.kde4/Autostart (nothing happens)
                                  /.kde4/env (nothing happens)

I just want to know how we run scripts when X is up and running in arch/kde4?

Do we really need to create a .desktop file everytime for a new shell script thats about X?

I can execute the script just fine from a terminal (shuts off my touchpad).

#!/bin/bash
lsusb | grep -q 044e:3017
if [ "$?" -eq "0" ]
then
/usr/bin/synclient TouchpadOff=1
fi

Last edited by greenfish (2009-05-03 20:24:46)


ARCH64 archSKYNET server AMD  Phenom(tm) II X2 550 HDD 6TB Ram 8GB
Hobbies: Running, Pistol Marksmanship, Classic Music

Offline

#2 2009-05-03 13:23:13

raf_kig
Member
Registered: 2008-11-28
Posts: 143

Re: [SOLVED] autostart kde4/bsd init in general?

Placing it in ~/.kde4/Autostart should work.
The only thing that comes to my mind is: Make sure that you did a chmod +x but i guess you have tried that.

Offline

#3 2009-05-03 13:26:28

greenfish
Member
From: eating fish in /dev/null
Registered: 2008-08-30
Posts: 229

Re: [SOLVED] autostart kde4/bsd init in general?

raf_kig wrote:

Placing it in ~/.kde4/Autostart should work.
The only thing that comes to my mind is: Make sure that you did a chmod +x but i guess you have tried that.

yup the file have the right permissions to be executed but for some reason it doesnt work hmm


problem solved, i had a typo in my script. how do you mark a thread solved?

Last edited by greenfish (2009-05-03 16:40:21)


ARCH64 archSKYNET server AMD  Phenom(tm) II X2 550 HDD 6TB Ram 8GB
Hobbies: Running, Pistol Marksmanship, Classic Music

Offline

#4 2009-05-03 16:43:06

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] autostart kde4/bsd init in general?

Use the edit link at the bottom right of your first post to mark your thread solved.

Offline

Board footer

Powered by FluxBB