Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Possibly add a Switch User entry to exit.lua< Next Oldest | Next Newest >
john.martzouco Offline





Group: Members
Posts: 253
Joined: Nov. 2007
Posted: Dec. 22 2007,16:29 QUOTE

Hi Robert,

Would it be improper for me to suggest that a Switch User toggle be added to the Exit Options dialog?  I find myself sharing the laptops with my wife regularly and it's a little tedious exit to shell, logout each time.

I've not tried Frugal or Poorman's install, so I don't know if the multi-user environment is used there or not... and that is why I ask with if it's appropriate.

I've been able to get some of it done on my own, but haven't figured out how /etc/init.d/functions5.lua calls the logout processes.

I would hope the Switch User option would exit to shell and then logout the current user.

Here is what I've been able to achieve so far in exit.lua:
Code Sample
4c4
< w = fltk:Fl_Double_Window(205, 175, "DSL Exit Options")
---
> w = fltk:Fl_Double_Window(205, 185, "DSL Exit Options")
30c30,39
< promptBtn = fltk:Fl_Round_Button(55, 55, 115, 25, "Exit to Prompt");
---
> promptBtn = fltk:Fl_Round_Button(55, 55, 105, 25, "Switch User");
> promptBtn:type(fltk.FL_RADIO_BUTTON)
> promptBtn:value(0)
> promptBtn:callback(
> function(promptBtn)
>   backupBtn:value(0)
>   backupBtn:hide()
> end)
>
> promptBtn = fltk:Fl_Round_Button(55, 75, 125, 25, "Exit to Prompt");
41c50
< backupBtn = fltk:Fl_Check_Button(70, 85, 80, 30, "Backup")
---
> backupBtn = fltk:Fl_Check_Button(70, 105, 80, 30, "Backup")
54c63
< okBtn = fltk:Fl_Return_Button(25, 130, 60, 25, "OK")
---
> okBtn = fltk:Fl_Return_Button(25, 140, 60, 25, "OK")
77c86
< cancelBtn = fltk:Fl_Button(115, 130, 60, 25, "Cancel")
---
> cancelBtn = fltk:Fl_Button(115, 140, 60, 25, "Cancel")


Much thanks,
John
Back to top
Profile PM 
0 replies since Dec. 22 2007,16:29 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Possibly add a Switch User entry to exit.lua

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code