![]() |
start gui based program after user login
Dear all,
I m trying to run a GUI based app, which need to start after login of any user. pls help me to configure it. Thanx. Shahid Awan. |
What distribibution and release (for example, Fedora Core 3 or Mandrake 10.1) are you running? Also, which desktop (Gnome, KDE, etc.).
|
i am running gnome.
help me bye |
Well in Gnome on Fedora Core 3 (you didn't mention your distribution), you can add a program to start at login by going to the menu "Applications->Preferences->More Preferences->Sessions". On the top of that dialog, you'll see a tab labeled "Startup Programs", where you can add the program you want to run.
|
i have the same problem
i'm using FC3 and gnome starting my program using .xsession palcd in $HOME is doable but using this method, user can easily kill my program is there anyway to make my startup program run as root? i tried to insert my call line /usr/local/bin/progname in /etc/X11/gdm/PresessionDefault the program runs, but i can't get to my desktop any hint? |
Kendo, try adding a & at the end of your command
so /usr/local/bin/progname & This runs the program/process in the background and allows the system to move onto the next task, i.e. starting up the desktop, othewise it will wait for the current command to finish before executing the next one |
putting & at the end of the call line solve my first problem
but the program i'm calling is a billing cafe (when computer is not in used, it's suppose to be in foreground) so it creates another problem :(( is there anyway to call a gui program as root regardless who logged in on gnome? |
Have you tried sudo, you can have sudo set up to allow all users to run one specific command ie your program without prompting for the users password.
Users will not be able to kill the program as its not owned by them, nor will they be able to `sudo kill <pid>` because sudo has not been setup to allow that command |
i haven't tried sudo yet
i'l read the manual later :) thx |
Re: start gui based program after user login
Quote:
Except I am running SimplyMepis 3.3 (Debian Based w KDE 3.x). I know there is somewhere where I just open a text file and add: myprogram & But, I am at a loss as to what config file it is... |
| All times are GMT -5. The time now is 10:48 PM. |