SliTaz SliTaz Forum

You are not logged in.

#1 2012-12-13 18:34:34

nunopicado
Member
Registered: 2012-12-13
Posts: 4

Setting up Slitaz with a single application

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

#2 2012-12-16 05:17:56

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Setting up Slitaz with a single application

@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

#3 2012-12-16 11:22:39

nunopicado
Member
Registered: 2012-12-13
Posts: 4

Re: Setting up Slitaz with a single application

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! wink

Offline

#4 2012-12-17 05:12:46

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Setting up Slitaz with a single application

@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

#5 2012-12-17 13:12:33

nunopicado
Member
Registered: 2012-12-13
Posts: 4

Re: Setting up Slitaz with a single application

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

#6 2012-12-17 21:42:37

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Setting up Slitaz with a single application

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

#7 2012-12-17 21:51:24

nunopicado
Member
Registered: 2012-12-13
Posts: 4

Re: Setting up Slitaz with a single application

Yes, thank you very much.

I'll test it that way! smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]