Shutdown only in panel

Forum rules
Before you post please read this

Shutdown only in panel

Postby f0olyc0oly on Mon Aug 12, 2013 11:55 pm

I tried the steps provided here http://forums.linuxmint.com/viewtopic.php?f=175&t=56101 but when I clicked the shutdown icon nothing happens. please help.
f0olyc0oly
Level 1
Level 1
 
Posts: 12
Joined: Mon Aug 12, 2013 11:45 pm

Linux Mint is funded by ads and donations.
 

Re: Shutdown only in panel

Postby f0olyc0oly on Tue Aug 13, 2013 12:02 am

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.
f0olyc0oly
Level 1
Level 1
 
Posts: 12
Joined: Mon Aug 12, 2013 11:45 pm

Re: Shutdown only in panel

Postby seppalta on Tue Aug 13, 2013 1:20 am

Last edited by seppalta on Tue Aug 13, 2013 3:19 pm, edited 1 time in total.
seppalta
Level 4
Level 4
 
Posts: 390
Joined: Wed Jun 08, 2011 12:08 pm

Re: Shutdown only in panel

Postby f0olyc0oly on Tue Aug 13, 2013 1:56 am

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
Level 1
Level 1
 
Posts: 12
Joined: Mon Aug 12, 2013 11:45 pm

Re: Shutdown only in panel

Postby f0olyc0oly on Tue Aug 13, 2013 2:14 am

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
Level 1
Level 1
 
Posts: 12
Joined: Mon Aug 12, 2013 11:45 pm

Re: Shutdown only in panel

Postby f0olyc0oly on Tue Aug 13, 2013 4:12 am

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
Level 1
Level 1
 
Posts: 12
Joined: Mon Aug 12, 2013 11:45 pm

Re: Shutdown only in panel

Postby f0olyc0oly on Tue Aug 13, 2013 5:07 am

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.
f0olyc0oly
Level 1
Level 1
 
Posts: 12
Joined: Mon Aug 12, 2013 11:45 pm

Re: Shutdown only in panel

Postby seppalta on Tue Aug 13, 2013 3:19 pm

seppalta
Level 4
Level 4
 
Posts: 390
Joined: Wed Jun 08, 2011 12:08 pm

Linux Mint is funded by ads and donations.
 

Return to Others

Who is online

Users browsing this forum: No registered users and 3 guests