Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > SuSE Linux Help
Reload this Page How to run program on user logon?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

SuSE Linux Help For help and discussions related to SuSE Linux

Reply
 
Thread Tools Display Modes
Old 07-08-2008   #1 (permalink)
arcull
Linux Newbie
 
Join Date: Feb 2006
Location: Slovenia
Posts: 153
How to run program on user logon?

Hi everyone, I've been searching the web, but still can't find the right answer. I would like that a certain program starts when certain user logs on to kde. I gues it has to bee done via script, but don't know where to put it and how to tell the kernel to execute it only for certain user. I am using suse 10.2 Thanks for help.
arcull is offline   Reply With Quote
Old 07-08-2008   #2 (permalink)
bigtomrodney
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,145
You can put the script or desktop shortcut into ~/.kde/Autostart for that user. KDE will then launch it when the user logs in.
__________________
In the land of the blind, the night vision users are laughing at the king

Registered Linux user #378740

New members read here / Forum Rules
bigtomrodney is offline   Reply With Quote
Old 07-08-2008   #3 (permalink)
arcull
Linux Newbie
 
Join Date: Feb 2006
Location: Slovenia
Posts: 153
Thanks for reply bigtomrodney. Unfortunately I can not find /.kde/Autostart directory. Did you mean /etc/xdg/autostart maybe. But I gues the latest would stand for all users. Correct me if I am wrong. Thanks again.
arcull is offline   Reply With Quote
Old 07-08-2008   #4 (permalink)
usamamuneeb
Linux User
 
usamamuneeb's Avatar
 
Join Date: Jun 2007
Location: Karachi, PAKISTAN
Posts: 411
Send a message via MSN to usamamuneeb
/etc/xdg/autostart works for all DEs, ~/.kde/xxx works only in KDE
__________________
"You can complain that roses have thorns, or you can rejoice because thorns have roses."
usamamuneeb is offline   Reply With Quote
Old 07-08-2008   #5 (permalink)
gogalthorp
Linux Guru
 
gogalthorp's Avatar
 
Join Date: Oct 2006
Location: West (by God) Virginia
Posts: 1,939
Note the period in front of the name indicates it is a hidden file/directory. Hidden files do not show up in a normal window. In the Konqurer window select view then Show Hidden. Also there is the equivalent location for Gnome.
gogalthorp is offline   Reply With Quote
Old 07-08-2008   #6 (permalink)
bigtomrodney
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,145
The latest way to do it - which I believe is to be inline with freedsktop standards - is to put it in ~/.config/Autostart

This will apply just to the owner of that home directory but applies to all desktop environments.
__________________
In the land of the blind, the night vision users are laughing at the king

Registered Linux user #378740

New members read here / Forum Rules
bigtomrodney is offline   Reply With Quote
Old 07-08-2008   #7 (permalink)
arcull
Linux Newbie
 
Join Date: Feb 2006
Location: Slovenia
Posts: 153
It works now the path is /home/username/.kde/Autostart, it really was hidden I just didn't know that, thanks guys.
arcull is offline   Reply With Quote
Old 07-08-2008   #8 (permalink)
gogalthorp
Linux Guru
 
gogalthorp's Avatar
 
Join Date: Oct 2006
Location: West (by God) Virginia
Posts: 1,939
FYI the tilda ~ is short hand for the current users home directory.
gogalthorp is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 09:12 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0