LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-31-2007, 01:26 PM   #1
memo007
Member
 
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, 01:39 PM   #2
Lenard
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: 58
So add it to your hidden .kde/AutoStart directory, just right click and choose Link to application.
 
Old 01-31-2007, 01:40 PM   #3
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
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, 01:50 PM   #4
memo007
Member
 
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, 02:40 PM   #5
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
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

#!/bin/bash
hotkeys -t inspiron8100
 
Old 01-31-2007, 02:53 PM   #6
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

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

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


Reply



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 01:58 AM
making a command run when using batteries phillips321 SUSE / openSUSE 1 04-28-2005 11:22 AM
making a command run after boot phillips321 Linux - Software 1 04-19-2005 09:11 PM
Making shells run at startup? Tuxluver Fedora 3 02-19-2005 02:57 PM
making kde run a command at startup wfettich Linux - General 3 05-10-2004 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:08 AM.

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