Find the answer to your Linux question:
Results 1 to 8 of 8
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 ...
  1. #1
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162

    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.

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You can put the script or desktop shortcut into ~/.kde/Autostart for that user. KDE will then launch it when the user logs in.

  3. #3
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162
    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.

  4. #4
    Linux User
    Join Date
    Jun 2007
    Posts
    458
    /etc/xdg/autostart works for all DEs, ~/.kde/xxx works only in KDE
    "When you have nothing to say, say nothing."

  5. #5
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    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.

  6. #6
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    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.

  7. #7
    Linux Newbie
    Join Date
    Feb 2006
    Location
    Slovenia
    Posts
    162
    It works now the path is /home/username/.kde/Autostart, it really was hidden I just didn't know that, thanks guys.

  8. #8
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    FYI the tilda ~ is short hand for the current users home directory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...