Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-31-2007, 02:26 PM   #1
Registered: Feb 2005
Distribution: Debian, Kanotix, Kubuntu
Posts: 117

Rep: Reputation: 15
Making a simple command run on KDE startup

HEllo everyone,

I just have a quick question, I would like to run this command hotkeys -t inspiron8100 at KDE startup
so i don't have to type it manually to get my laptop volume controls to work.
I tried to edit the /home/hackstacy/.bash_profile and put it in there, it did not work.
Old 01-31-2007, 02:39 PM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
So add it to your hidden .kde/AutoStart directory, just right click and choose Link to application.
Old 01-31-2007, 02:40 PM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I tried to edit the /home/hackstacy/.bash_profile and put it in there, it did not work.
No, that's run when you login to your shell (here bash), via text getty. Instead if you have a graphical login to KDE, you should use something else. Maybe try adding a script into /home/hackstacy/.kde/Autostart/ since that sounds promising?
Old 01-31-2007, 02:50 PM   #4
Registered: Feb 2005
Distribution: Debian, Kanotix, Kubuntu
Posts: 117

Original Poster
Rep: Reputation: 15
The program itself runs when linked to the application; however, i need to make it run compatible with my keyboard or a command hotkeys -t inspiron8100 ?
Old 01-31-2007, 03:40 PM   #5
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,195

Rep: Reputation: 50
If linking only links to the hotkeys program without the parameters, make a little script instead of a link

Make the new file ~/.kde/Autostart/hkeys-Inspiron

Then open the new file in any text editor and put these two lines

hotkeys -t inspiron8100
Old 01-31-2007, 03:53 PM   #6
General Failure
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 35
Then make the file executable and you're done.

Last edited by General Failure; 01-31-2007 at 03:54 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help to run a simple comand on startup of FC4 wilson757 Fedora 1 10-02-2005 02:58 AM
making a command run when using batteries phillips321 SUSE / openSUSE 1 04-28-2005 12:22 PM
making a command run after boot phillips321 Linux - Software 1 04-19-2005 10:11 PM
Making shells run at startup? Tuxluver Fedora 3 02-19-2005 03:57 PM
making kde run a command at startup wfettich Linux - General 3 05-10-2004 04:13 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration