Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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
Distribution: Ubuntu Based (Mint and custom) 12.04
Posts: 21
Rep:
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.