You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
command line 'NO' and GUI 'YES'

Author (Read 2872 times)

0 Members and 1 Guest are viewing this topic.

command line 'NO' and GUI 'YES'
« on: March 23, 2014, 10:14:58 PM »
 

SkylineR34

  • Guest
Ok I initially had problems with shutting down after I used NDISWRAPPER. I managed to change the etc/init.d/halt script and I was able to shutdown with no problems.
Then I decided that I wanted to make a shutdown icon and place it on the desktop. While I attempt this a suggestion pops up but when I try it, It gives me more options to as restart shutdown etc. So I am trying to avoid so many steps I want to shutdown directly.
So I have tested many commands to use for this on the command window and most of them hang my machine.
It does not hang when I use the GUI as I said. What is the command that is evoked when I click shutdown on the GUI?
I want to use the same one for my special OFF button.
Thanks
 


Re: command line 'NO' and GUI 'YES'
« Reply #1 on: March 23, 2014, 11:01:59 PM »
 

SkylineR34

  • Guest
OK so I just found that
sudo shutdown -h now
works for me but when I go to "create launcher" in the command section I write this line of code and nothing happens
If I use the terminal directly it works
I sense that I am almost there
thanks
 

Re: command line 'NO' and GUI 'YES'
« Reply #2 on: March 24, 2014, 12:44:58 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8155
    Posts
  • Country: nz
  • Reputation: 761
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
That idea actually makes the shutdown process more cumbersome. You'll have to enter a password each time you want to shutdown. Personally I would avoid this like the plague, the conventional way is 2 clicks, how bad is that really.
 

Re: command line 'NO' and GUI 'YES'
« Reply #3 on: March 24, 2014, 06:25:34 PM »
 

SkylineR34

  • Guest
OK this one worked for me  ;D

Xfce4-session-logout --halt

You have to double click it for it to work.
I have no problem with this I just didnt want to be prompted with more options.
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements