LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   start gui based program after user login (http://www.linuxquestions.org/questions/linux-general-1/start-gui-based-program-after-user-login-308649/)

shahidawan 04-01-2005 11:18 AM

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.

macemoneta 04-01-2005 01:46 PM

What distribibution and release (for example, Fedora Core 3 or Mandrake 10.1) are you running? Also, which desktop (Gnome, KDE, etc.).

sailu_mvn 04-02-2005 04:44 AM

i am running gnome.
help me
bye

macemoneta 04-02-2005 08:45 AM

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.

Kendo1979 07-12-2005 03:55 AM

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?

ethics 07-12-2005 04:03 AM

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

Kendo1979 07-21-2005 02:42 PM

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?

phil.d.g 07-21-2005 03:35 PM

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

Kendo1979 07-26-2005 02:06 AM

i haven't tried sudo yet
i'l read the manual later :)
thx

poetfreak 07-27-2005 08:46 PM

Re: start gui based program after user login
 
Quote:

Originally posted by shahidawan
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.

Yep, me too. Every user needs to see it (it is an admin warning ).

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 05:47 PM.