You are not logged in.
Hello
Is it possible to configure Slitaz to use a single application?
My idea would be to do something like "shell exchange" in Windows.
One the PC boots, it boots directly to my application, without desktop or panels or bars - just my app.
When I leave my application, the system would begin shutdown procedure.
How could this be done?
Thank you
Nuno Picado
Offline
@nunopicado, I am sure there may be better ways of doing this but this worked for me.
1. edit your .xinitrc file with leafpad or vi
2. change the option of jwm window manager to soomething like
jwm)
jwm
exec firefox ;;
Why not other window managers? Just because I did not want to mess up other entries in my .xinitrc but there is no reason why you would not be able to do this. I used firefox just as an example of an app.
3. Make sure you have enabled jwm - in /etc/slim.conf file you should include jwm as an available window manager (this may be enabled by default)
4. Reboot and when you get the logon prompt enter password and press F1 which will cycle through all available window managers. When you get jwm displayed press enter.
This should take you directly to firefox as in my example. When you exit out of firefox you will be taken back to the logon prompt.
Note that you can change the default window manager to be jwm instead of openbox which overcomes the problem of having to press F1 to select the window manager.
Also, note that it appears jwm does not provide window decorations (window borders and minimize, resize, close buttons etc) so if you want these features you may have to start up a window decorator such as emerald.
Hope this helps.
Offline
Thank you very much @gdesilva.
I'll try it out!
As for the window decorations, it was another problem lying ahead, because my app (a POS application) was made to be a (false) FullScreen application, and the title bar just takes precious space. So it's better this way!
Now I just need to figure out how auto-shutdown when my app exits, and how to create a backup everytime a pendrive is inserted.
Basically, I don't want my client to never ever touch the OS. Something like an appliance.
Again, thank you, and if you have any thoughts on those last two problems, it would be great! 
Offline
@nunopicado, a minor correction....the reason why I was not getting window decorations was because I had not installed jwm in the first place - once I installed jwm I got the window decoration and a panel. But given that you do not want window decorations or the panels just do not run jwm at all and just run your application instead. If you do not want to go back to the logon panel then I guess doing something like this will work.
jwm)
firefox
exec reboot ;;
If you do not want to reboot, of course, there is the halt or poweroff commands. Fot the sake of making things more elegant and meaningful, you probably would want to create your own option, such as 'kiosk' or something like that rather than using jwm as an option. Just make sure kiosk option is specified in /etc/slim.conf file.
Offline
Oh, OK.
This way my App would "be" the window manager by itself, right? That's exactly what I need.
Can you explain the "kiosk" part? Didn't quite get it.
Thank you very much
Offline
The script in .xinitrc handles the selection of the window manager. By toggling F1 the user cycles through the available window managers. Since you are not going to use any of the window managers, it would not be very elegant thing to point to your app when jwm is selected.
Hence my suggestion that you include an extra 'window manager' option, something like kiosk, in your .xinitrc which then will invoke your app. If you do this then you need to make sure that the pseudo window manager, kiosk, is listed in /etc/slim.conf as well otherwise toggling F1 will not show this as an option. If you want to make 'kiosk' the default window manager, which I think is what you intend to do, then place 'kiosk' as the first window manager in the list in slim.conf file.
It is just a cosmetic change but will help the poor sod who is going to troubleshoot your system when you are not available! Hope this makes it clear.
Offline
Yes, thank you very much.
I'll test it that way! 
Offline
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]