SliTaz SliTaz Forum

You are not logged in.

#1 2016-11-11 09:03:39

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

Power off option in Slim logon screen

Hi,

Just a suggestion about the possibility of including a power off option on the Slim login screen as found in most other distros. Currently, if one mistakenly selects reboot option after login in, Slitaz automatically takes you to the Slim login screen and there is no way to turn off the system other than by pressing the power button which is not an elegant way to do it (apart from the possibility of corrupting the files system).

If this feature is left out purposely due to design constraints such as to keep the distro lean then I fully agree it is a good reason to leave out as many 'nice to have' options as this but thought of checking this out.

Offline

#2 2016-11-11 14:18:57

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Power off option in Slim logon screen

Hi all,

I agree with this idea. And why not the Reboot system function too?

By the way, in the past when clicking on the Logout button in the upper right corner, the SliTaz Logout window opened.

Now, when clicking on the user's icon opens the Logout button and then it is possible to open the SliTaz Logout window.

Why this additional step? Why not display directly the 3 buttons Close session / Reboot / Shutdown ?

Offline

#3 2016-11-11 16:28:48

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Power off option in Slim logon screen

To reboot from Slim login screen:

Type reboot as username

Hit the Enter key

Type root password

Hit Enter key

Poweroff computer from Slim login screen:

Type halt as username

Hit the Enter key

Type root password

Hit enter key

Offline

#4 2016-11-11 21:00:27

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Power off option in Slim logon screen

Hi mojo,

I don't remember having read this in the documentation. You're the best!

Thanks.

Offline

#5 2016-11-11 23:46:36

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

Re: Power off option in Slim logon screen

Thanks mojo for this. Not that I am a person who reads doco in detail but as Ceel mentioned I haven't seen this feature documented either.

Offline

#6 2016-11-11 23:51:21

Genesis
Member
Registered: 2014-07-03
Posts: 109

Re: Power off option in Slim logon screen

It's a nice piece of information to have at FAQ. (http://doc.slitaz.org/en:guides:faq)

Offline

#7 2016-11-12 06:04:49

hackdorte
Member
Registered: 2014-06-05
Posts: 83

Re: Power off option in Slim logon screen

Or install LightDM and configure.

Offline

#8 2016-11-12 12:00:36

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Power off option in Slim logon screen

Hi there,

Ceel, you wrote:

By the way, in the past when clicking on the Logout button in the upper right corner, the SliTaz Logout window opened.

Now, when clicking on the user's icon opens the Logout button and then it is possible to open the SliTaz Logout window.

Why this additional step? Why not display directly the 3 buttons Close session / Reboot / Shutdown ?

I made that user icon on the panel for user always know the log name. (Are you tux now, or root, or someone else?)

Only one way to implement this user icon with the label in the LXPanel is to add menu. And menu needs to have at least one item. So I added that logout command. It was fine because I was no need to make anything else: assign the icon, make translation of the item...

I like your idea. And yesterday I implemented it. It was not so easy as it was previously smile

Test it with the next weekly Rolling ISO (will be done in about 12 hours, if memory serves me well).

Or update the bunch of the packages tomorrow (after the mirrors will be synced).

Or test it now: download and update the packages:

slitaz-tools-boxes (1004)

slitaz-configs (295)

And please update [c]~/.xinitrc[/c] of all your users like is done here: i.e. remove lines:

[c]dd="$HOME/.local/share/desktop-directories"; mkdir -p "$dd"
echo -e "[Desktop Entry]\nType=Directory\nName=$(whoami)" > "$dd/user.directory"[/c]
and add the line instead:

[c]tazbox mkmenu[/c]
Now log out and log in. Test the brand new logout menu!

Have a nice day! wink

[attachment=43554,2394]

Offline

#9 2016-11-12 20:15:38

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: Power off option in Slim logon screen

Hi Aleksej,

Did it working; need to update slitaz-tools-boxes too.

Works fine!

Many thanks. You're also the best ;-)

Offline

#10 2016-11-12 21:20:19

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Power off option in Slim logon screen

Oh, exactly, boxes smile

Thank you! yikes)

PS. Updated the links in the previous post.

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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