[Gambas-user] Gambas Internet Cafe
Rob
sourceforge-raindog2 at ...94...
Mon Mar 29 17:24:51 CEST 2004
On Monday 29 March 2004 10:55, Dimitri Bellini wrote:
> Can someone give me some hits to control the Client Side
> Desktop (like Logout after finished the credit, or to push
> info to the client?) Thanks in advance
I've actually done a number of applications where Gambas was the
primary interface during login (a game menu, a banking terminal
application, etc.) where you want to kill the session after
you're done, and it can be done a number of ways. None of them
is exactly what you want to do but maybe I can give you some
ideas.
For the game menu, which I did using KDE, I just put the icon in
the autostart folder, made the gambas app full screen and always
on top, and then hid it when the games ran and restored it when
they exited (using SHELL...WAIT). I didn't have a need to log
out (just shutdown or reboot, which can be done with "halt" or
"reboot" respectively, at least on Mandrake) but have a look at
kdeinit_shutdown. (I think "killall kdeinit" will do the same
thing, maybe not as nicely.)
For the banking apps, I was running them under VNC, and in the
.xsession-startup I had a line "sawfish &" (sawfish being the
most minimal window manager I had on hand that still worked the
way Windows users expect...) and then my app, *not*
backgrounded. My app was once again full screen (the window
manager was just there for the dialogs.) After that I think I
did something like killall Xvnc, since it was running under VNC.
(Obviously each user could only have one of these sessions
running.)
Rob
More information about the User
mailing list