LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 04-01-2005, 11:18 AM   #1
shahidawan
LQ Newbie
 
Registered: Mar 2005
Posts: 13

Rep: Reputation: 0
Question 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.
 
Old 04-01-2005, 01:46 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
What distribibution and release (for example, Fedora Core 3 or Mandrake 10.1) are you running? Also, which desktop (Gnome, KDE, etc.).
 
Old 04-02-2005, 04:44 AM   #3
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
i am running gnome.
help me
bye
 
Old 04-02-2005, 08:45 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 07-12-2005, 03:55 AM   #5
Kendo1979
Member
 
Registered: Aug 2004
Location: Bandung, Indonesia
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
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?
 
Old 07-12-2005, 04:03 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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
 
Old 07-21-2005, 02:42 PM   #7
Kendo1979
Member
 
Registered: Aug 2004
Location: Bandung, Indonesia
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
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?
 
Old 07-21-2005, 03:35 PM   #8
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
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
 
Old 07-26-2005, 02:06 AM   #9
Kendo1979
Member
 
Registered: Aug 2004
Location: Bandung, Indonesia
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
i haven't tried sudo yet
i'l read the manual later
thx
 
Old 07-27-2005, 08:46 PM   #10
poetfreak
LQ Newbie
 
Registered: Jul 2005
Location: Michigan, US
Distribution: Ubuntu Based (Mint and custom) 12.04
Posts: 21

Rep: Reputation: 15
Question 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...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start my GUI program by a daemon? oldh Linux - Software 3 08-05-2005 02:04 PM
How to start program on X login donbellioni Linux - General 11 07-28-2004 04:45 PM
Could not start GUI login and KDE satimis *BSD 0 02-21-2004 10:25 AM
GUI based interphase to start programs at boot time. softgun Debian 2 10-24-2003 01:45 AM
gnome doesn't start from gui login rogerlin Linux - Newbie 1 01-08-2003 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration