You are not logged in.

#1 2011-07-02 16:32:58

johan1391
Member
From: Dhahran, Saudi Arabia
Registered: 2010-08-03
Posts: 106

[SOLVED]Openbox menu.xml

1) I get this upon opening OpenBox:

 
One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "~/.config/menu.xml" line 1, with message: XML declaration allowed only at the start of the document

My menu.xml:

    <?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/X11R6/share/openbox/menu.xsd">
    <menu id="root-menu" label="openbox3">
        <item label="Terminal"><action name="Execute"><execute>sakura</execute></action></item>
        <item label="File Manager"><action name="Execute"><execute>thunar</execute></action></item>
        <item label="Web Browser"><action name="Execute"><execute>firefox</execute></action></item>
        <item label="Editor"><action name="Execute"><execute>leafpad</execute></action></item>
        <item label="Run Command"><action name="Execute"><execute>gmrun</execute></action></item>
        <separator />
        <menu id="client-list-combined-menu" />
        <separator label="Applications"/>
        <menu id="Accesories" label="Accesories">
            <item label="File Manager"><action name="Execute"><execute>exo-open --launch FileManager</execute></action></item>
            <item label="Leafpad"><action name="Execute"><execute>leafpad</execute></action></item>
            <item label="Sakura"><action name="Execute"><execute>sakura</execute></action></item>
            <item label="Squeeze"><action name="Execute"><execute>squeeze</execute></action></item>
            <item label="Terminal Emulator"><action name="Execute"><execute>exo-open --launch TerminalEmulator</execute></action></item>
        </menu>
        <menu id="Graphics" label="Graphics">
            <item label="Image Viewer"><action name="Execute"><execute>gpicview</execute></action></item>
            <item label="gscreenshot"><action name="Execute"><execute>gscreenshot</execute></action></item>
        </menu>
        <menu id="Audio &amp; Video" label="Audio &amp; Video">
            <item label="Exaile"><action name="Execute"><execute>exaile</execute></action></item>
            <item label="VLC Player"><action name="Execute"><execute>vlc</execute></action></item>
            <item label="MPlayer Media Player"><action name="Execute"><execute>mplayer -really-quiet</execute></action></item>
            <item label="VolWheel"><action name="Execute"><execute>volwheel</execute></action></item>
        </menu>

        <menu id="Office" label="Office">
            <item label="Writer"><action name="Execute"><execute>/usr/bin/libreoffice -writer</execute></action></item>
            <item label="Calc"><action name="Execute"><execute>/usr/bin/libreoffice -calc</execute></action></item>
            <item label="Impress"><action name="Execute"><execute>/usr/bin/libreoffice -impress</execute></action></item>
            <item label="Draw"><action name="Execute"><execute>/usr/bin/libreoffice -draw</execute></action></item>
            <item label="Math"><action name="Execute"><execute>/usr/bin/libreoffice -math</execute></action></item>
            <item label="Base"><action name="Execute"><execute>/usr/bin/libreoffice -base</execute></action></item>
        </menu>
        <menu id="Games" label="Games">
            <item label="Cube"><action name="Execute"><execute>/usr/bin/cube</execute></action></item>
            <item label="OpenArena"><action name="Execute"><execute>openarena</execute></action></item>
        </menu>
        <menu id="Network" label="Network">
            <item label="Wifi Radar"><action name="Execute"><execute>/usr/sbin/wifi-radar</execute></action></item>
            <item label="Avahi SSH Server Browser"><action name="Execute"><execute>/usr/bin/bssh</execute></action></item>
            <item label="Avahi VNC Server Browser"><action name="Execute"><execute>/usr/bin/bvnc</execute></action></item>
            <item label="Deluge BitTorrent Client"><action name="Execute"><execute>deluge-gtk</execute></action></item>
            <item label="Firefox Beta - Safe Mode"><action name="Execute"><execute>firefox-beta-bin -safe-mode</execute></action></item>
            <item label="Firefox Beta"><action name="Execute"><execute>firefox-beta-bin</execute></action></item>
            <item label="Links"><action name="Execute"><execute>xlinks -g</execute></action></item>
            <item label="Mail Reader"><action name="Execute"><execute>exo-open --launch MailReader</execute></action></item>
            <item label="Midori"><action name="Execute"><execute>midori</execute></action></item>
            <item label="OpenArena Server"><action name="Execute"><execute>sakura -e openarena-server</execute></action></item>
            <item label="Pidgin Internet Messenger"><action name="Execute"><execute>pidgin</execute></action></item>
            <item label="Web Browser"><action name="Execute"><execute>exo-open --launch WebBrowser</execute></action></item>
        </menu>
        <menu id="Development" label="Development">
            <item label="Conky GUI"><action name="Execute"><execute>/usr/bin/conkygui</execute></action></item>
        </menu>
        <menu id="Settings" label="Settings">
            <item label="Customize Look and Feel"><action name="Execute"><execute>lxappearance</execute></action></item>
            <item label="File Manager"><action name="Execute"><execute>thunar-settings</execute></action></item>
            <item label="Openbox Configuration Manager"><action name="Execute"><execute>obconf</execute></action></item>
            <item label="Panel tint2"><action name="Execute"><execute>tint2conf</execute></action></item>
            <item label="Preferred Applications"><action name="Execute"><execute>exo-preferred-applications</execute></action></item>
            <item label="Removable Drives and Media"><action name="Execute"><execute>thunar-volman-settings</execute></action></item>
            <item label="Screensaver"><action name="Execute"><execute>xscreensaver-demo</execute></action></item>
        </menu>
        <menu id="System Tools" label="System Tools">
            <item label="Avahi Zeroconf Browser"><action name="Execute"><execute>/usr/bin/avahi-discover</execute></action></item>
            <item label="Bulk Rename"><action name="Execute"><execute>/usr/lib/Thunar/ThunarBulkRename</execute></action></item>
            <item label="Device Manager"><action name="Execute"><execute>gnome-device-manager</execute></action></item>
            <item label="Disk Utility"><action name="Execute"><execute>palimpsest</execute></action></item>
            <item label="Htop"><action name="Execute"><execute>sakura -e htop</execute></action></item>
            <item label="Open Folder with Thunar"><action name="Execute"><execute>Thunar</execute></action></item>
            <item label="Thunar File Manager"><action name="Execute"><execute>Thunar</execute></action></item>
            <item label="Gerix Wifi Cracker"><action name="Execute"><execute>gerix</execute></action></item>
        </menu>
        <separator />
        <menu id="Openbox Settings" label="Openbox Settings">
            <item label="Reconfigure Openbox"><action name="Reconfigure" /></item>
            <item label="Openbox Configuration Manager"><action name="Execute"><execute>obconf</execute></action></item>
            <item label="Configure Autostarted Applications"><action name="Execute"><execute>leafpad /home/john_warren/.config/openbox/autostart.sh</execute></action></item>
            <item label="Edit rc.xml"><action name="Execute"><execute>leafpad /home/john_warren/.config/openbox/rc.xml</execute></action></item>
            <item label="Edit menu.xml"><action name="Execute"><execute>leafpad /home/john_warren/.config/openbox/menu.xml</execute></action></item>
            <separator label="obmenugen settings"/>
            <item label="Edit obmenugen configuration"><action name="Execute"><execute>leafpad /home/ken/.config/obmenugen/obmenugen.cfg</execute></action></item>
            <item label="Edit obmenugen exclusions"><action name="Execute"><execute>leafpad /home/ken/.config/obmenugen/exclusions</execute></action></item>
            <item label="Edit obmenugen schema"><action name="Execute"><execute>leafpad /home/ken/.config/obmenugen/obmenugen.schema</execute></action></item>
        </menu>
        <separator />
        <item label="Lock Screen"><action name="Execute"><execute>xscreensaver-command -lock</execute></action></item>
        <item label="Exit"><action name="Exit" /></item>
    </menu>
    </openbox_menu>

Disregard the next two problems they are solved. Look at next post for details.

2) If i rub my fingers across the uppermost portion of the left set of speakers on my MacBook Pro 5,2 then there is a very loud screeching noise. Also, if I close the lid of my laptop then the speakers screech until it is opened. Need to fix this soon.

3) After many system updates and program installations today trying to get my computer to be a fully functional desktop I noticed when trying to access alsamixer the following output:

ALSA lib pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

cannot open mixer: Connection refused

Any suggestions for either of the three issues I am having. I'm sorry in advance if this is against this forum's etiquette, but it seams silly to place these in separate threads.

Last edited by johan1391 (2011-07-03 17:40:38)

Offline

#2 2011-07-03 03:18:41

johan1391
Member
From: Dhahran, Saudi Arabia
Registered: 2010-08-03
Posts: 106

Re: [SOLVED]Openbox menu.xml

Ok, I'll admit I was a bit lazy in my attempts to solve these problems myself. Forgive me, I spent the entirety of another day yesterday trying to get my system as I like it. Anyhow, I was able to solve the last two by issues by removing these packages:

gnome-user-share-3.0.0-1 [1.57 MB]
            gnome-bluetooth-3.0.1-1 [2.89 MB]
            gnome-control-center-3.0.2-1 [12.62 MB]e]
            gnome-settings-daemon-3.0.2-1 [4.09 MB]
            pulseaudio-alsa-1-2 [0.01 MB]  alsa-plugins-1.0.24-2 [0.26 MB]
            alsa-oss-1.0.17-1 [0.18 MB]  alsa-utils-1.0.24.2-1 [2.08 MB]

I then proceeded to reinstall alsa-utils and alsa-plugins while simultaneously ensuring that alsa mixer had the necessary unmuted channels. I muted  the front, surround, LFE while leaving the headphone and line channels unmuted.

Offline

#3 2011-07-03 03:36:16

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: [SOLVED]Openbox menu.xml

I don't personally have much experience with XML, but IDEs like Geany and Kate often have XML syntax checkers that can help point to errors.

Offline

#4 2011-07-03 12:48:26

johan1391
Member
From: Dhahran, Saudi Arabia
Registered: 2010-08-03
Posts: 106

Re: [SOLVED]Openbox menu.xml

I just opened my menu.xml in Geany and it doesn't have any error markers anywhere that I can see. Could it be a xml version conflict or something of the sort?

Offline

#5 2011-07-03 13:39:54

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: [SOLVED]Openbox menu.xml

I tried your config here and the error seems to go away when you remove the leading spaces in the first line. The xml parser expects the prolog to be first.

Offline

#6 2011-07-03 17:39:55

johan1391
Member
From: Dhahran, Saudi Arabia
Registered: 2010-08-03
Posts: 106

Re: [SOLVED]Openbox menu.xml

Thank you, deleting the initial spaces took care of the problem. Solved.

Offline

Board footer

Powered by FluxBB