Shutdown only in panel

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
f0olyc0oly

Shutdown only in panel

Post by f0olyc0oly »

I tried the steps provided here [url]http://forums.linuxmint.com/viewtopic.php?f=175&t=56101[/url] but when I clicked the shutdown icon nothing happens. please help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
f0olyc0oly

Re: Shutdown only in panel

Post by f0olyc0oly »

additional info. i want to only have shutdown option when i clicked the power off button. so no more prompt whether to reboot,shutdown, log off, etc.
seppalta

Re: Shutdown only in panel

Post by seppalta »

[url]http://lxlinux.com/#13[/url]
Last edited by seppalta on Tue Aug 13, 2013 3:19 pm, edited 1 time in total.
f0olyc0oly

Re: Shutdown only in panel

Post by f0olyc0oly »

this is the content of lxde-logout.desktop

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Type=Application
name=Shutdown
Comment=Shutdown
Icon=stock_exit
Exec=/usr/bin/lxde-session-shutdown.sh
NoDisplay=false
lxde-session-shutdown.sh

Code: Select all

#! /bin/sh
sudo /sbin/shutdown -h now $*
I rebooted my system and when I click the power off icon, nothing happens.
f0olyc0oly

Re: Shutdown only in panel

Post by f0olyc0oly »

I edited ~/.config/lxpanel/LXDE/config as well

Code: Select all

[Command]
FileManager=pcmanfm %s
Terminal=x-terminal-emulator
Logout=/usr/bin/lxde-session-shutdown.sh
according to a guide i saw.. but it's still not working :( :(
f0olyc0oly

Re: Shutdown only in panel

Post by f0olyc0oly »

does it matter that i enabled autlogin? because i just noticed for below code it has sudo included.

lxde-session-shutdown.sh

Code: Select all

#! /bin/sh
sudo /sbin/shutdown -h now $*
f0olyc0oly

Re: Shutdown only in panel

Post by f0olyc0oly »

okay managed for it work i edited the following.

Code: Select all

#! /bin/sh
echo <password> | sudo -S /sbin/shutdown -h now $*
where password is the admin password.
seppalta

Re: Shutdown only in panel

Post by seppalta »

[url]http://lxlinux.com/#13[/url]
Locked

Return to “Software & Applications”