LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-18-2007, 07:01 AM   #1
Bkangatsi
LQ Newbie
 
Registered: May 2007
Posts: 2

Rep: Reputation: 0
Launch Application at log on


Hello, my machine runs on linux.

How do i configure it such that as soon as a user logs in, it launches a flight simulator program that i installed.

What i want is as soon as a guest logs in, the flight simulator is launched and thus the guest is not able to access the desktop, only use the simulator. Kind of like a cyber cafe software.

Please help...
 
Old 05-18-2007, 07:36 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
The cleanest way I can think of is to define a new gdm/kdm session that only starts your simulator (I suppose it is fullscreen and does not need multiple windows). That way, there's no desktop, no window manager, nothing but the simulator, so there's 0% chance of the user accessing the desktop
Besides, you'll save memory and CPU.

Yves.
 
Old 05-18-2007, 08:18 AM   #3
Bkangatsi
LQ Newbie
 
Registered: May 2007
Posts: 2

Original Poster
Rep: Reputation: 0
HI, What is a new gdm/kdm session and does that mean that my machine will not be able to run other programs when the simulator is in use?

Suppose i wanted an administrator log on to be able to run other programs even go to the desktop. But when a guest logs in, they can only use the simulator.....how would i go about this....thanks in advance.
 
Old 05-21-2007, 04:08 AM   #4
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 66
I'm not on Linux right now, so don't rely too much on the exact paths and filenames I give, but basically, it comes down to this.

I assume you run gdm because I haven't used KDM since ages
And I assume you won't be doing any administrative task under the same login as the simulator login

1/ Create a session script, let's say /usr/local/bin/XsessionSim:
Code:
gnome-screensaver &
/path/to/your/simulator
I just hope that gnome-screensaver's ability to propose swithing back to the login screen is linked to GDM, and not to the gnome desktop.

2/ Create the window manager session. For me, it is in /etc/X11/wmsession.d/; just copy a previous one and adapt it so that it executes /usr/local/bin/XsessionSim. restart X.

3/ On the login screen (GDM), select your simulation user, and change the session to the one you just defined.
For the administrator however, the session will remain what you currently use.

You should be able to switch between users by hitting the screen-saver keys-shortcut, if there's one; if there isn't, just configure xbindkeys and add it as the first line of your session script: "/usr/bin/xbindkeys &" (probably).

If that is not enough, you'd best abandon the minimalist path, and turn instead to an adapted window manager, such as Matchbox.

Yves.

[edit:]Now that I think about it, if you don't care for the screen-saver, you can just go ahead with xbindkeys, and configure it to launch /usr/bin/gdmflexiserver instead of the screensaver; you'd then remove the gnome-screensaver line from your script of course.[/edit]

Last edited by theYinYeti; 05-21-2007 at 04:14 AM.
 
  


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
launch application from hotplug agent spaesani Programming 3 03-09-2007 01:40 AM
Application Launch Failure - several distros gastroman Linux - Desktop 9 01-18-2007 02:48 AM
kde - launch an application with a custom title, window icon grooveharder Linux - Software 2 12-11-2006 04:54 AM
Application launch times Johng Mandriva 1 08-09-2005 12:31 PM
Launch an application in firefox - How? TSynergy Linux - Newbie 5 02-27-2005 12:02 PM

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

All times are GMT -5. The time now is 10:40 AM.

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