LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-25-2009, 09:05 AM   #1
jonnytabpni
Member
 
Registered: Sep 2008
Posts: 68

Rep: Reputation: 16
Running a single application


Hi Folks,

I have developed a java application that I wish to host on my server for remote clients to connect to via FreeNX.

FreeNX is working well, except that the following line in my java code:

this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH);

isn't maxmising with java application when I try and run my java app from the NX client.

Now, if I ask my NX client to start GNOME first, then run my program manually with within GNOME, it maximises ok.

My question is:

1) How can I set up GNOME (or KDE, or XFCE) to run a single application once a user logs in? Then ideally, once the user terminates this program, exit the GNOME session..

Thanks
 
Old 12-25-2009, 04:23 PM   #2
TeenyLemon
LQ Newbie
 
Registered: Dec 2008
Posts: 27

Rep: Reputation: 16
Hi jonnytabpni,

I haven't used Gnome in a while but if i do remember correctly there is a session customizer.

Which means you can turn on applications to start up when you log in.

System -> Preferences -> Sessions

Go to the "Startup Programs" tab, click the Add button and either use Browse to add an application from the /usr/bin directory
or use the Command field and write the programs command in (the one to open it).

You can also add a name and a comment.

After your done, click OK then log out and log back in again.

If you need a bit more ino on how to do it check out this link.

http://www.howtoforge.com/make-desktop-applications-start-automatically-gnome


For the second part of terminating and exiting, I can't help you on that one.
Google is your friend.

If I do find anything, I'll post back.

Hope this helps.

Last edited by TeenyLemon; 12-25-2009 at 04:27 PM. Reason: Error.
 
Old 12-26-2009, 07:19 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
If you are only going to run a single application you really don't need kde or gnome. The more complex a desktop is the more complex that it will be to lock it down. If your application is able to handle windowing by itself or doesn't have secondary windows at all then you can even run it without a WM. If not, use a very simple wm that won't provide a menu or a launcher, and that doesn't have any default keybinding to launch a terminal emulator.

However, that doesn't stop the user from logging into a console and launching apps on that display manually, you can always disable VT switching and the c-a-backspace key combo to zap the server in your xorg.conf to cut that as well.

You should also google for something like "linux kiosk" to get some ideas.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Single GUI-Application DSL binooetomo DamnSmallLinux 6 02-12-2009 10:44 AM
Single application use robl Linux - General 4 02-11-2009 01:19 PM
Single graphical application and xinit G4tsu Linux - General 7 09-11-2008 08:40 AM
Firewall a single application... Akonbobot Linux - Security 7 03-03-2008 12:31 PM
Application to place single space with % between each line MasterC Linux - General 2 05-18-2003 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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