LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2014, 11:43 AM   #1
sorvad
Member
 
Registered: Apr 2004
Location: Cumbria, England
Distribution: openSuSE, Red Hat, HP-UX
Posts: 70

Rep: Reputation: 15
Question Running a desktop application at Login


I am trying to find a way to present a user with an interface which only runs a specific application.
I have decided that the best way is probably to create a user account which is automatically logged in after system boots (which I can do by editing custom.conf).
Then I need a way of starting the application automatically and causing a logout/shutdown when it is closed. I suspect this is something to do with X configuration but I cannot find what to do.
Can anyone help?
 
Old 10-14-2014, 01:11 PM   #2
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
What distribution? "custom.conf" sounds like a distribution-specific file to me. What you want is called a "kiosk" setup sometimes, maybe this help for searching.
 
Old 10-14-2014, 01:25 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920Reputation: 920
i would look into the file ~/.bash_profile or ~/.profile and add the path to the program you want to run at the end.
 
Old 10-14-2014, 04:17 PM   #4
sorvad
Member
 
Registered: Apr 2004
Location: Cumbria, England
Distribution: openSuSE, Red Hat, HP-UX
Posts: 70

Original Poster
Rep: Reputation: 15
I am running RHEL 6.5.
custom.conf allows me to turn on autologin and specify the user that will be logged in.
 
Old 10-14-2014, 10:50 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,766
Blog Entries: 28

Rep: Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304Reputation: 6304
If you are running a GUI interface, the GUI configuration should offer a way to do this.

Most desktop environments include a "startup" item in which applications can be configured to run when the GUI starts; it may also be called something like "session" on the menu. Most window managers have a way of configuring applications to autostart when the GUI starts, though it commonly requires editing a text file in some way.

In Fluxbox, it's in ~/.fluxbox/startup. Here's an example from my ~/.fluxbox/startup file:

Code:
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.
xscreensaver&              <-----starts Xscreensaver
~/scripts/wallpaper.sh&       <----starts a script to rotate wallpaper every X minutes
gkrellm&    <----starts GKrellM
keepassx&     <----Starts Keepassx
exec fluxbox
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Java Application with no desktop environment. cslucsm Linux - Newbie 4 09-14-2010 09:45 AM
Running Java Application with no desktop environment. cslucsm Linux - General 3 09-10-2010 01:45 PM
[SOLVED] Asus 900 running Jaunty for Netbooks - how to get application icon on desktop? Slowbey Linux - Laptop and Netbook 2 08-10-2009 04:40 AM
Controlling application running on a virtual desktop Blizz Programming 1 06-20-2009 05:07 PM
Problem running Foxpro Application in Linux Desktop aanand Linux - Software 4 07-10-2003 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:45 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