In SliTaz 5 there's a five second delay after trying to halt/reboot or closing the x session. How do I get rid of that (useless and annoying) delay? Thanks!

logout/reboot delay
(20 posts) (4 voices)-
Posted 8 years ago #
-
Hi new_u,
This delay provided here because user may click mistakenly on these menu items. No questions from any opened programs, system will forced to reboot / shut off and you may loose your work. I decided not to provide configuration tools for this such simple actions, instead to make reasonable small delay.
I don't remember how to change the delay, but let's go together to find it out.
Open LXPanel configuration file: ~/.config/lxpanel/<used-profile-name>/panels/panel
Here <used-profile-name>: I use 'default' (because I started
lxpanel
without options), probably you use 'slitaz' because yourlxpanel
started as "lxpanel -p slitaz".Config fragment:
Plugin { type = menu Config { name=user.directory image=avatar-default tintcolor=#33230D item { image=system-log-out-panel name=Выйти из системы action=tazbox logout exit } item { image=system-reboot-panel name=Перезагрузить action=tazbox logout reboot } item { image=system-shutdown-panel name=Выключить action=tazbox logout halt } } }
Here the lines with "action=" are significant. We see "tazbox" script are executed with the first argument "logout" and with the second argument one of "exit", "reboot" or "halt".
We can find "tazbox" sources on our sources repository hg.slitaz.org -> slitaz-tools project -> "Browse" button -> go to "tazbox" folder -> open "tazbox" script:
http://hg.slitaz.org/slitaz-tools/file/c368cf4a87d5/tazbox/tazbox
Here find (Ctrl + F) word "logout" and, among other, found what we need on the line #147: http://hg.slitaz.org/slitaz-tools/file/c368cf4a87d5/tazbox/tazbox#l147
timeout=5
and on the line #158:
--timeout $timeout --timeout-indicator=bottom \
I really don't know what with you ended if you change line #147 to
timeout=0
In most cases the 0 is a "corner case". You may get zero delay as well as infinite delay.Anyway, you may remove the line #158.
::
Also, FYI you can press the Power button to switch your box off immediately.
Posted 8 years ago # -
Thanks Aleksej! You saved me the trouble of going through the sources. Much appreciated.
For what it's worth, I think this was better handled in SliTaz 4. You select the option you want, and then hit OK. That is faster, and it also prevents you from accidentaly closing the session or the computer.
Posted 8 years ago # -
It's only matter of taste, I think. Like they say here on Russian, on color and taste all pens are different :)
Personally, I don't like that behavior in SliTaz 4. Too many clicks to such simple action. And just FYI that piece of code is 1:1 copy from the Yad examples page (Yad is thing that show all the dialogs in SliTaz scripts). You wrote "That is faster" but I doubt you reboot your box so frequently that extra 5 seconds are significant...
Also, you should see the tendency of today in modern interfaces, if you use for example Google mail. You don't need to confirm mail deleting. All that annoying questions "are you sure...?" are in the past. User knows what he wants, and he sure of course. But no one guaranteed against errors. Good interface forgives an errors and let user undo his action. In the web browser you may close the tab accidentally, and then re-open it again...
I like the current logout machinery, and the only way to make it safer is to find a way to determine the presence of opened windows (and ask for confirmation only in this case, possibly with auto-confirmation on timeout) or exit immediately instead.
Anyway, I can add all that old variants of logout menu for you and provide configuration variable in one of the user configuration scripts, if you want it. Let me know.
Posted 8 years ago # -
So I took a better look at tazbox in SliTaz 5 and found out that
1) invoking "tazbox logout" still gives the old behaviour. Good!!
2) the logout option in the main menu (menu on the left) also works like in SliTaz 4. Good!!
3) I can also add an application item to a launch bar that invokes "tazbox logout" and get exactly the same interface that SliTaz 4 has.>Anyway, I can add all that old variants of logout menu for you
Thanks for the offer! But I don't think that's needed. All the options I want are still there.
>Also, you should see the tendency of today in modern interfaces,
Yes and I don't like that tendency nor I think it is a good idea and not just because of a matter of taste. Sometimes things in linux are overcomplicated. But the opposite, dumbing interfaces down and making them 'automatic' and 'simple' is just as bad IMO.
By the way, the current oversimplifaction in interfaces is taking place because people are copying the dumbed down interfaces used in 'smartphones'. I don't think that's a serious engineering decision.
Posted 8 years ago # -
>Google mail. You don't need to confirm mail deleting.
That's because google mail is never deleted. It is stored forever by the NSA, CIA, FBI, etc =)
Posted 8 years ago # -
First quote:
For what it's worth, I think this was better handled in SliTaz 4. You select the option you want, and then hit OK.
Second quote:
2) the logout option in the main menu (menu on the left) also works like in SliTaz 4. Good!!
? Select the option, then click OK?
I not started SliTaz 4 for about a year and don't remember it exactly how it was there. But I know that current logout menu don't have options dropdown and OK button. It have three buttons for three actions. Man, what are you really want?
You don't like my "engineering decisions"? Well, nothing wrong. You have your rights to it.
By the way, the current oversimplifaction in interfaces is taking place because people are copying the dumbed down interfaces used in 'smartphones'.
I think interface should help you realize your tasks. And that's all. There's a number of tasks and a number of realizations. What's wrong with the "dumb" interface if it helps you make a work? I think, you not just a 'smartphones' and Google hater, eh?
Posted 8 years ago # -
>But I know that current logout menu don't have options dropdown and OK button. It have three buttons for three actions.
Right, it's not exactly the same as in SliTaz4, but it works almost the same - you don't have to wait, and it's not easy to accidentaly close the system.
>I think, you not just a 'smartphones' and Google hater, eh?
I certainly do not love google nor smartphones. So you are just a google lover who wants to turn linux into a web based mail system, run by the NSA...?
Posted 8 years ago # -
And why did you draw such conclusions?
Posted 8 years ago # -
Because of what you wrote? =)
Posted 8 years ago # -
Then read carefully ;)
Posted 8 years ago # -
....So you are just a google lover who wants to turn linux into a web based system....
+1 like
Posted 8 years ago # -
Please, stop using TazPanel, guys, because it is opened in the web browser, i.e. web-based. In addition, please, share your opinion in the SliTaz mailing list, so more people let to know your personal preferences. I think, Christophe will be "glad" to read these sentences.
And, of course, you can put your "+1 like" to a more appropriate place - SliTaz official Facebook page. Unfortunately, "+1" means nothing here on forum.
And, finally, I'll be very pleased to see your patches in the SliTaz.
Adieu.
Posted 8 years ago # -
O.T.
I don't speak English, only Italian
Tranquillo che tazpanel in casa mia non ci è mai entrato, né ci entrerà!
Poi mi spiace dirtelo per una persona nella tua posizione, ma hai un pessimo carattere. Non si reagisce così ad una semplice critica. Mi auguro che Pankso abbia tempo di partecipare di più alle scelte in SliTaz. La sua mano aveva dato prova di grande gusto e creatività. Cosa che purtroppo vedo mancare sempre di più.Per quello che riguarda i “Like” e facebook, ci andate poi voi su quelle piattaforme. Evito google e derivate, ma sebbene qui il significato pur non essendo proprio di quella piattaforma, ha sortito lo stesso (a malo modo) il suo effetto.
Posted 8 years ago # -
I don't speak Italian, sorry.
К вашему сведению, именно Кристоф (ака Pankso) разработал TazPanel. Идея была поддержана и развита другими разработчиками, в частности, Паскалем Белларом и мною. Говорить о том, что наши идеи отстой, должно быть легко? Это то же самое, что насрать в душу...
Именно Pankso открыл официальные страницы SliTaz в Facebook и Twitter. А теперь, не принимая его же идеи, вы говорите, что вы скучаете по его креативности?
Спасибо за ваше мнение, но я не думаю, что два миллиарда пользователей смартфонов - дураки, а вы - д'Артаньяны. Речь вообще не шла о смартфонах. Каждый интерфейс должен помогать пользователю выполнять его задачу. Способы взаимодействия с интерфейсом разные (мышь на десктопе, тачскрин на планшете, 3-D аэро-мышь на смарт-тв) и задачи разные (написать программу, послушать музыку, прочитать книгу, ...). Зачем всё лепить в одну кучу?
А ваше поведение - это просто нео-луддизм. И это выглядит весьма жалко...
Posted 8 years ago #
Reply »
You must log in to post.