LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2015, 07:01 AM   #1
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Rep: Reputation: 34
[SOLVED]"sudo/gksudo shutdown -h now" doesn't work from OpenBox menu


This is my ~/.config/openbox/menu.xml All the items listed here used to work quite satisfactorily if not perfectly with sudo before i got too clever for my own good and installed gksu. They still do after i substituted "gksudo" where it used to be "sudo", all except for the Shutdown item. I mean, stuff on my window starts graying out at a snail's pace when it's been so long that i've forgotten about it and started working on something else..you can't call that working, right?

Code:
<?xml version="1.0" encoding="UTF-8"?>

<openbox_menu xmlns="http://openbox.org/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://openbox.org/
                file:///usr/share/openbox/menu.xsd">

<menu id="root-menu" label="Openbox 3">
  <item label="Terminal emulator">
    <action name="Execute"><execute>x-terminal-emulator</execute></action>
  </item>
  <item label="File Manager">
    <action name="Execute"><execute>xfe</execute></action>
  </item>
  <item label="Blender3D">
    <action name="Execute"><execute>/home/sade/blender-2.75a-linux-glibc211-x86_64/blender</execute></action>
  </item>
  <item label="Web browser">
    <action name="Execute"><execute>x-www-browser</execute></action>
  </item>
  <item label="Package Manager">
    <action name="Execute"><execute>gksudo synaptic</execute></action>
  </item>
  <item label="Restart">
    <action name="Execute"><execute>gksudo reboot</execute></action>
  </item>
  <item label="Shutdown">
    <action name="Execute"><execute>gksudo shutdown -h now</execute></action>
  </item>
  <!-- This requires the presence of the 'menu' package to work -->
  <menu id="/Debian" />
  <separator />
  <menu id="client-list-menu" />
  <separator />
  <item label="ObConf">
    <action name="Execute"><execute>obconf</execute></action>
  </item>
  <item label="Reconfigure">
    <action name="Reconfigure" />
  </item>
  <item label="Restart OpenBox">
    <action name="Restart" />
  </item>
  <separator />
  <item label="Exit">
    <action name="Exit" />
  </item>
</menu>

</openbox_menu>
Edit: My fault entirely, invested too much emotionally into the OS, now that i have the workable minimal configuration i wanted i'll focus on learning and practicing Blender and not spare a minute more on the friggin' thing.

Last edited by mzsade; 08-20-2015 at 11:14 PM.
 
Old 08-20-2015, 01:20 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
:-)

The usual problem is that sudo requires a password before it can do anything. gksudo should pop up a login window... However, frequently sudo requires a terminal access (or shutdown requires it...) and without a terminal the command aborts.
 
Old 08-20-2015, 04:16 PM   #3
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
Both sudo synaptic, sudo reboot used to work without a prompt before, and now gksudo synaptic, gksudo reboot still do after popping the prompt for password? Thought i'd put the command in a script and then place the path to it in the openbox menu as i did for the Blender executable..just one those stupid notions i get, nothing based on any sound principles, of course it didn't work..and it doesn't fully abort it either, just lodges itself somewhere and rots, and then seeps through slowly like slime.
 
Old 08-20-2015, 11:21 PM   #4
mzsade
Member
 
Registered: Sep 2009
Distribution: Linux Mint 9, Linux Mint 17.2(xfce), LMDE2(Mate), Debian Jessie minimal (with standalone OBox)
Posts: 299

Original Poster
Rep: Reputation: 34
It's right there in the beginning of the Debian Reference Manual, sec 1.1.8 and i am an idiot, has something to do with multiuser/single-user mode, the pros can do the explaining, i don't care, i am done with this!

I put
Code:
gksudo poweroff -i -f
in the menu.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gnome-ppp doesn't work without gksudo jeffj Ubuntu 2 02-06-2012 03:17 PM
Sudo/gksudo failure bodach Ubuntu 5 12-13-2009 07:58 AM
gksudo vs. sudo strangeness CJS Programming 5 05-15-2008 06:47 PM
sudo doesn't work mla Linux - Software 1 10-01-2003 08:24 PM
sudo doesn't work mla Linux - Software 4 10-01-2003 07:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration