Author Topic: (SOLVED) Sakura and Openbox-menu error  (Read 2031 times)

Offline unist

  • Full Member
  • ***
  • Posts: 158
(SOLVED) Sakura and Openbox-menu error
« on: March 25, 2012, 08:54:12 PM »
Hi, unexpectedly I am getting the following error:

Invalid output pipe-menu "openbox-menu -g -t 'sakura -e'"

And the far left button of the lower bar, that is used to display all programs is not working. I have to use the right button of the mouse as the only way to access some menus but the installed programs.

I uninstalled sakura and task-openbox to see if the problem resolves, but the original error remains.

Please advise. Thank you.

P.S.: I reinstalled sakura and task-openbox since the problem was not solved in order to keep the system in the original situation.

Update: When I open sakura there is an initial message:

gpg-agent[4514]: can't create directory `/tmp/gpg-L6poSW': Permiso denegado

Permiso denegado translates permit denied
« Last Edit: March 28, 2012, 08:41:21 PM by unist »
Registered Linux user #547260

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Sakura and Openbox-menu error
« Reply #1 on: March 25, 2012, 11:04:09 PM »
Open /home/(you)/.config/openbox/menu.xml in a text editor. At the top of the file, you will see a line:

<menu id="desktop-app" label="Applications" execute="openbox-menu -g -t 'sakura -e'" />

Change that line to read:

<menu id="desktop-app" label="Applications" execute="openbox-menu -t 'sakura -e'" />

(Delete the -g portion of the line.) Save the file and restart Openbox.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Sakura and Openbox-menu error
« Reply #2 on: March 26, 2012, 12:43:26 AM »
Open /home/(you)/.config/openbox/menu.xml in a text editor. At the top of the file, you will see a line:

<menu id="desktop-app" label="Applications" execute="openbox-menu -g -t 'sakura -e'" />

Change that line to read:

<menu id="desktop-app" label="Applications" execute="openbox-menu -t 'sakura -e'" />

(Delete the -g portion of the line.) Save the file and restart Openbox.




Hi, the -g switch has for function to have all menu entries belonging to Gnome to be displayed in the menus. If you remove it the menu entries will not show anymore.

Quote
$ LEN openbox-menu --help
Usage:
  openbox-menu [OPTION...] [menu]  - Openbox menu generator 0.3.6.6

Help Options:
  -h, --help             Show help options

Application Options:
  -c, --comment          Display comment instead of application name
  -i, --noicons          Don't display icons in menu
  -t, --terminal=cmd     Terminal command (default sakura -e)
  -g, --gnome            Display GNOME entries
  -k, --kde              Display KDE entries
  -x, --xfce             Display XFCE entries
  -r, --rox              Display ROX entries
$


The menus which don't appear in Lxpanel could be because you put the panel on the top of the screen ?

What kind of Openbox version do you use ? Home made or the one provided on the mirrors ?

In case you need new configuration files (if you have damaged your's for example), you can copy a new one from /usr/share/openbox-menu, or from /etc/skel/.config/openbox, or get new ones here:
Openbox : updated configuration files New New !.

« Last Edit: March 26, 2012, 12:46:25 AM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Sakura and Openbox-menu error
« Reply #3 on: March 26, 2012, 12:50:18 AM »
gpg-agent[4514]: can't create directory `/tmp/gpg-L6poSW': Permiso denegado

Permiso denegado translates permit denied

Can you give the output of the command:

Code: [Select]
$ ls -l /
?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Sakura and Openbox-menu error
« Reply #4 on: March 26, 2012, 02:08:45 PM »

Hi, the -g switch has for function to have all menu entries belonging to Gnome to be displayed in the menus. If you remove it the menu entries will not show anymore.


Hmmm. Works okay for me. Must not have any gtk apps.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Sakura and Openbox-menu error
« Reply #5 on: March 26, 2012, 03:54:30 PM »

Hi, the -g switch has for function to have all menu entries belonging to Gnome to be displayed in the menus. If you remove it the menu entries will not show anymore.


Hmmm. Works okay for me. Must not have any gtk apps.


Hi,
It is mostly a matter of desktop files, you know, the ones located under /usr/share/applications when it is written chains such as "OnlyShowIn=Gnome" for example ?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Sakura and Openbox-menu error
« Reply #6 on: March 26, 2012, 04:04:49 PM »

It is mostly a matter of desktop files, you know, the ones located under /usr/share/applications when it is written chains such as "OnlyShowIn=Gnome" for example ?


Ah, I see. I usually edit those pesky desktop files and put the edited copy in ~/.local/share/applications, like you had previously suggested.
« Last Edit: March 27, 2012, 01:08:56 AM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Sakura and Openbox-menu error
« Reply #7 on: March 27, 2012, 04:31:41 PM »
Open /home/(you)/.config/openbox/menu.xml in a text editor. At the top of the file, you will see a line:

<menu id="desktop-app" label="Applications" execute="openbox-menu -g -t 'sakura -e'" />

Change that line to read:

<menu id="desktop-app" label="Applications" execute="openbox-menu -t 'sakura -e'" />

(Delete the -g portion of the line.) Save the file and restart Openbox.




I applied it but error persisted. Please see the first lines of the modified file:

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

<openbox_menu xmlns="http://openbox.org/3.4/menu">

   <menu id="desktop-app" label="Applications" execute="openbox-menu -t 'sakura -e'" />
   
   <menu id="openbox-menu" label="OpenBox">
        <item label="ObConf">
           <action name="Execute"><command>obconf</command></action>
        </item>
        <item label="Reconfigure">
          <action name="Reconfigure" />
        </item>
   </menu>   
Registered Linux user #547260

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Sakura and Openbox-menu error
« Reply #8 on: March 27, 2012, 04:38:05 PM »


If you are using

export DE=gnome

in .bashrc there should be no reason to use the -g switch, as your system already thinks its a gnome environment.

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Sakura and Openbox-menu error
« Reply #9 on: March 27, 2012, 04:41:41 PM »

The menus which don't appear in Lxpanel could be because you put the panel on the top of the screen ?

What kind of Openbox version do you use ? Home made or the one provided on the mirrors ?

In case you need new configuration files (if you have damaged your's for example), you can copy a new one from /usr/share/openbox-menu, or from /etc/skel/.config/openbox, or get new ones here:
Openbox : updated configuration files New New !.




1) I restored the -g option in menu.xml and saved the change.

2) I did not put the Lxpanel on top of the screen.

3) My Openbox version is PCLinux OS Openbox 2011-08, from the PCLOS Web site (through a CD)

4) In case I  can solve the problem I will look for the updated configuration files.
Registered Linux user #547260

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Sakura and Openbox-menu error
« Reply #10 on: March 27, 2012, 04:43:34 PM »

Can you give the output of the command:

Code: [Select]
$ ls -l /

This is the output:

gpg-agent[5457]: can't create directory `/tmp/gpg-z5o8D6': Permiso denegado
[hugo@localhost ~]$ ls -l /
total 192
-rw-r--r--   1 root root   592 dic 18 02:33 
drwxr-xr-x   2 root root  4096 mar 25 19:34 bin/
drwxr-xr-x   3 root root  4096 mar 27 17:54 boot/
-rw-------   1 root root 16237 ene 13 04:02 dead.letter
drwxr-xr-x  18 root root  4840 mar 27 17:54 dev/
drwxr-xr-x 130 root root 12288 mar 27 17:54 etc/
drwxr-xr-x   3 root root  4096 dic 17 10:29 home/
drwxr-xr-x   2 root root  4096 dic 17 10:31 initrd/
drwxr-xr-x  16 root root 12288 mar 23 20:42 lib/
drwx------   2 root root 16384 dic 17 05:29 lost+found/
drwxrwxr-x   2 root root  4096 mar 27 17:54 media/
drwxr-xr-x   2 root root  4096 dic 17 05:29 mnt/
-rw-rw-r--   1 root root 67331 dic 22 19:06 Module.symvers
-rw-rw-r--   1 root root     0 dic 17 05:45 null
drwxr-xr-x   7 root root  4096 mar 24 12:00 opt/
dr-xr-xr-x 134 root root     0 mar 27 13:23 proc/
drwxr-x---  21 root root  4096 mar 27 17:46 root/
drwxr-xr-x   2 root root 12288 mar 25 19:35 sbin/
drwxr-xr-x  12 root root     0 mar 27 13:23 sys/
drwxr-xr-x  34 root root 12288 mar 27 17:54 tmp/
drwxr-xr-x  14 root root  4096 dic  6 11:36 usr/
drwxr-xr-x  21 root root  4096 mar 24 10:11 var/
[hugo@localhost ~]$
Registered Linux user #547260

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Sakura and Openbox-menu error
« Reply #11 on: March 27, 2012, 04:48:20 PM »
Hi,
It is mostly a matter of desktop files, you know, the ones located under /usr/share/applications when it is written chains such as "OnlyShowIn=Gnome" for example ?


Effectively, I can't have access to the programs in /usr/share/applications
Registered Linux user #547260

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Sakura and Openbox-menu error
« Reply #12 on: March 27, 2012, 04:52:30 PM »


If you are using

export DE=gnome

in .bashrc there should be no reason to use the -g switch, as your system already thinks its a gnome environment.

Jase

Jase: due to my limited knowledge of Linux and PCLOS I can't to verify if I am using
export DE=gnome
Registered Linux user #547260

Offline Hootiegibbon

  • Hero Member
  • *****
  • Posts: 4151
Re: Sakura and Openbox-menu error
« Reply #13 on: March 27, 2012, 05:00:04 PM »


If you are using

export DE=gnome

in .bashrc there should be no reason to use the -g switch, as your system already thinks its a gnome environment.

Jase

Jase: due to my limited knowledge of Linux and PCLOS I can't to verify if I am using
export DE=gnome

Open a terminal and type

cat .bashrc |grep DE=

and see what it come up with - if its nothing then its not in place

IF you want to try seeing if it makes a difference 

open .bashrc and add

export DE=gnome

then log out and log back in

you may need to use (in a terminal)

update-desktop-database && xdg_menu && update-menus -v

in order to get the benefit

Jase


I am Hootiegibbon, undisputed champion fo the typo

My .dotfiles

Offline unist

  • Full Member
  • ***
  • Posts: 158
Re: Sakura and Openbox-menu error
« Reply #14 on: March 27, 2012, 05:54:48 PM »

Open a terminal and type

cat .bashrc |grep DE=

and see what it come up with - if its nothing then its not in place


This is the output of cat .bashrc | DE=

gpg-agent[8627]: can't create directory `/tmp/gpg-0apWpV': Permiso denegado
[hugo@localhost ~]$ cat .bashrc |grep DE=
[hugo@localhost ~]$

Registered Linux user #547260