This is not so much a question as hopefully an useful pointer for somebody. I use Porteus from a 1 GB flash drive, which as everyone knows is very small on the space department. While the module interface for installing uninstalling programs in Porteus (or Slax) is perfect, I also prefer lighter faster desktop environments like Lxde, or Xfce.
What I went and did probably is probably against the design of the OS, nor recommended. Because I wanted to save space, I deleted the KDE base modules.
The problem that resulted for myself was that I couldn't login as a guest user (not a problem as I use root anyway), and that the 'poweroff/reboot' options were now missing/unavailable from the lxde-logout.
Here's what I did to re-enable a form of using the menu's logout gui interface, instead of say... using the cli. I downloaded Zenity from the slackyd repo, and converted it to a xzm module. You can create it yourself, or download the one I made here. Put it in your modules folder.
Second, I modified an existing script I found here to use with this.
Save it, name it 'lxde-logout', and make executable via 'chmod +x lxde-logout'.
Code: Select all
#!/bin/bash # Multiple Exit Script using Zenity for non GDM installs. # Requires Zenity. title="EXIT: What do you want to do ?" exit_type=`zenity --width="530" --height="220" --title="$title" --list --radiolist --column="Click Here" \ --column="Exit Type" --column="Description" \ TRUE "Logout" "Log Current User out and return to Login Screen"\ FALSE "Reboot" "Reboot the PC"\ FALSE "Shutdown" "Shutdown the PC"\ FALSE "Cancel" "Cancel the Exit" \ | sed 's/ max//g' ` echo "$exit_type chosen as the Exit Type!." #user must select a target type (Check if they cancelled) if [ ! "$exit_type" ]; then zenity --error --title="Error" --text="You must make a selection!" exit fi ######### This part takes the selection and applies it! ############# # Edit this first section if not using openbox! # if [ "$exit_type" = "Logout" ] then # Do logout here. killall lxsession && sleep 1 | zenity --progress --percentage=95 --title=Logout --auto-close --auto-kill --no-cancel --width=300 elif [ "$exit_type" = "Reboot" ] then # Do Reboot here. reboot | zenity --progress --percentage=95 --title=Reboot --auto-close --auto-kill --no-cancel --width=300 elif [ "$exit_type" = "Shutdown" ] then # Do Shutdown here. poweroff | zenity --progress --percentage=95 --title=Shutdown --auto-close --auto-kill --no-cancel --width=300 else #if [ "$exit_type" = "Cancel" ] #then # Do Cancel here. sleep 1 | zenity --progress --percentage=95 --title=Cancelling Exit --auto-close --auto-kill --no-cancel --width=300 fi
Reboot with the changes, and test it out. If for whatever reason, you are still able to login as a normal user, this may not work for you.