You are not logged in.
hi  i play an in-browser game called quakelive, and to do so i had to install the behemoth that is firefox. i also use openbox as the title of the thread suggests. Quakelive wouldnt work in firefox because of libpng issues, so after checking the quakelive forums i found out that to get quakelive to work in firefox i had to install libpng12 and to run ff with this command (which work's fine i might add)-
 i play an in-browser game called quakelive, and to do so i had to install the behemoth that is firefox. i also use openbox as the title of the thread suggests. Quakelive wouldnt work in firefox because of libpng issues, so after checking the quakelive forums i found out that to get quakelive to work in firefox i had to install libpng12 and to run ff with this command (which work's fine i might add)- 
LD_PRELOAD=/usr/lib/libpng12.so /usr/bin/firefoxi created an alias in .bashrc for just such a thing. But i'm a lazy sod,and instead of typing in a vc, i'd rather do the business with my mouse from the openbox menu. there's probably a very basic explanation for this, but when i set that command as an entry in my openbox menu it wouldn't work. any ideas?
Last edited by yabasta (2010-07-21 10:54:01)
Offline
Maybe you need to run in like this:
xterm -e 'LD_PRELOAD=/usr/lib/libpng12.so /usr/bin/firefox'It may crash your computer etc., so do it at your own risk. If you don't have xterm, substitute for the term emulator you use.
Offline
thanks for the reply, i use urxvt, and had already tried that yesterday. it didn't work, but i'm not entirely sure i want it to like that anyway. i'm sure i read somewhere recently that running gui stuff from command line wasn't good.
Offline
> running gui stuff from command line wasn't good
Errr ... what? Running GUI stuff _as root_ is bad but there's nothing wrong with starting Firefox from the commandline - I'm doing it all the time as I don't have _any_ menus here.
Offline
ok thanks  that command won't run from openbox though
 that command won't run from openbox though
Offline
You have a menu there, right? Can you post that xml file somewhere?
Last edited by karol (2010-07-20 12:24:37)
Offline
ok, here's my menu.xml
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/3.4/menu">
    <menu id="apps-editors-menu" label="Editors">
        <item label="GEdit">
            <action name="Execute">
                <command>
                    gedit
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Root Gedit">
            <action name="Execute">
                <execute>
                    gksu gedit
                </execute>
            </action>
        </item>
        <item label="NoteCase">
            <action name="Execute">
                <execute>
                    notecase
                </execute>
            </action>
        </item>
        <item label="Gconf-Editor">
            <action name="Execute">
                <execute>
                    gconf-editor
                </execute>
            </action>
        </item>
    </menu>
    <menu id="apps-term-menu" label="Terminals">
        <item label="urxvt">
            <action name="Execute">
                <execute>
                    urxvt
                </execute>
            </action>
        </item>
        <item label="ROXterm">
            <action name="Execute">
                <execute>
                    roxterm
                </execute>
            </action>
        </item>
    </menu>
    <menu id="apps-net-menu" label="Internet">
        <item label="Claws Mail">
            <action name="Execute">
                <execute>
                    claws-mail
                </execute>
            </action>
        </item>
        <item label="Midori browser">
            <action name="Execute">
                <execute>
                    midori
                </execute>
            </action>
        </item>
        <item label="firefox">
            <action name="Execute">
                <execute>
                    urxvt -e 'LD_PRELOAD=/usr/lib/libpng12.so /usr/bin/firefox'
                </execute>
            </action>
        </item>
        <item label="Weechat-urxvt">
            <action name="Execute">
                <execute>
                    urxvt -name weee -e weechat-curses
                </execute>
            </action>
        </item>
        <item label="Deluge">
            <action name="Execute">
                <execute>
                    deluge
                </execute>
            </action>
        </item>
        <item label="Minitube">
            <action name="Execute">
                <execute>
                    minitube
                </execute>
            </action>
        </item>
    </menu>
    <menu id="apps-multimedia-menu" label="Multimedia">
        <item label="Sonata">
            <action name="Execute">
                <execute>
                    sonata
                </execute>
            </action>
        </item>
        <item label="Envy24Control">
            <action name="Execute">
                <execute>
                    envy24control
                </execute>
            </action>
        </item>
        <item label="Totem">
            <action name="Execute">
                <command>
                    totem
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Gimp">
            <action name="Execute">
                <execute>
                    gimp
                </execute>
            </action>
        </item>
    </menu>
    <menu id="tools-menu" label="Tools">
        <item label="Conky">
            <action name="Execute">
                <execute>
                    /usr/bin/conky -c ~/Conky/conkyrc-panel
                </execute>
            </action>
        </item>
        <item label="Netactview">
            <action name="Execute">
                <execute>
                    netactview
                </execute>
            </action>
        </item>
        <item label="Htop">
            <action name="Execute">
                <execute>
                    urxvt -e htop
                </execute>
            </action>
        </item>
        <item label="Parcellite">
            <action name="Execute">
                <execute>
                    parcellite
                </execute>
            </action>
        </item>
        <item label="Scrot">
            <action name="Execute">
                <execute>
                    urxvt -e scrot -cd 5
                </execute>
            </action>
        </item>
        <item label="transparentify!">
            <action name="Execute">
                <execute>
                    transset .25
                </execute>
            </action>
        </item>
        <item label="Untransparentify!">
            <action name="Execute">
                <execute>
                    transset 1
                </execute>
            </action>
        </item>
    </menu>
    <menu id="file-stuff-menu" label="File stuff">
        <item label="Comix">
            <action name="Execute">
                <execute>
                    comix
                </execute>
            </action>
        </item>
        <item label="Evince pdf">
            <action name="Execute">
                <execute>
                    evince
                </execute>
            </action>
        </item>
        <item label="Catfish File Search">
            <action name="Execute">
                <execute>
                    catfish
                </execute>
            </action>
        </item>
        <item label="ZipperDeeDooDah">
            <action name="Execute">
                <execute>
                    xarchiver
                </execute>
            </action>
        </item>
        <item label="File roller">
            <action name="Execute">
                <execute>
                    file-roller
                </execute>
            </action>
        </item>
    </menu>
    <menu id="desktop-menu" label="Desktop">
        <item label="Lxappearance">
            <action name="Execute">
                <execute>
                    lxappearance
                </execute>
            </action>
        </item>
        <item label="Tint2">
            <action name="Execute">
                <execute>
                    tint2
                </execute>
            </action>
        </item>
        <item label="Nitrogen">
            <action name="Execute">
                <execute>
                    nitrogen
                </execute>
            </action>
        </item>
        <item label="Docker">
            <action name="Execute">
                <execute>
                    docker
                </execute>
            </action>
        </item>
        <separator/>
        <item label="gtk-chtheme">
            <action name="Execute">
                <execute>
                    gtk-chtheme
                </execute>
            </action>
        </item>
        <item label="Gtk theme switch">
            <action name="Execute">
                <execute>
                    gtk-theme-switch2
                </execute>
            </action>
        </item>
        <item label="Gtk colour thingybob">
            <action name="Execute">
                <execute>
                    gcolor2
                </execute>
            </action>
        </item>
        <item label="Gtk font selector">
            <action name="Execute">
                <execute>
                    gtk2fontsel
                </execute>
            </action>
        </item>
        <item label="Widget Factory">
            <action name="Execute">
                <execute>
                    twf
                </execute>
            </action>
        </item>
        <separator/>
        <item label="QT configurator">
            <action name="Execute">
                <execute>
                    qtconfig
                </execute>
            </action>
        </item>
    </menu>
    <menu id="apps-fileman-menu" label="File Managers">
        <item label="pcmanfm">
            <action name="Execute">
                <execute>
                    pcmanfm
                </execute>
            </action>
        </item>
        <item label="Midnight commander">
            <action name="Execute">
                <execute>
                    urxvt -e mc
                </execute>
            </action>
        </item>
        <item label="Achtung!! pcmanfm">
            <action name="Execute">
                <execute>
                    gksu pcmanfm
                </execute>
            </action>
        </item>
        <item label="Thunar">
            <action name="Execute">
                <command>
                    Thunar
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Root thunar">
            <action name="Execute">
                <execute>
                    gksu thunar
                </execute>
            </action>
        </item>
    </menu>
    <menu id="system-menu" label="System">
        <item label="fwbackups">
            <action name="Execute">
                <execute>
                    fwbackups
                </execute>
            </action>
        </item>
        <item label="fwbackups root">
            <action name="Execute">
                <execute>
                    gksu fwbackups
                </execute>
            </action>
        </item>
        <item label="Gufw">
            <action name="Execute">
                <execute>
                    gksu gufw
                </execute>
            </action>
        </item>
        <item label="Wicd-gtk">
            <action name="Execute">
                <execute>
                    wicd-gtk
                </execute>
            </action>
        </item>
        <separator/>
        <item label="Openbox Menu Conf">
            <action name="Execute">
                <execute>
                    obmenu
                </execute>
            </action>
        </item>
        <item label="Openbox Configuration Manager">
            <action name="Execute">
                <command>
                    obconf
                </command>
                <startupnotify>
                    <enabled>
                        yes
                    </enabled>
                </startupnotify>
            </action>
        </item>
        <item label="Obtheme">
            <action name="Execute">
                <execute>
                    obtheme
                </execute>
            </action>
        </item>
        <item label="Obapps">
            <action name="Execute">
                <execute>
                    obapps
                </execute>
            </action>
        </item>
        <separator/>
        <item label="Reconfigure Openbox">
            <action name="Reconfigure"/>
        </item>
        <item label="Restart Openbox">
            <action name="Restart"/>
        </item>
    </menu>
    <menu id="root-menu" label="Openbox 3">
        <separator label=":: Usual Suspects ::"/>
        <item label="Midori">
            <action name="Execute">
                <execute>
                    midori
                </execute>
            </action>
        </item>
        <item label="urxvt">
            <action name="Execute">
                <execute>
                    urxvt
                </execute>
            </action>
        </item>
        <item label="Pcmanfm">
            <action name="Execute">
                <execute>
                    pcmanfm
                </execute>
            </action>
        </item>
        <item label="Achtung!! pcmanfm">
            <action name="Execute">
                <execute>
                    gksu pcmanfm
                </execute>
            </action>
        </item>
        <item label="Weechat">
            <action name="Execute">
                <execute>
                    urxvt -name weee -e weechat-curses
                </execute>
            </action>
        </item>
        <item label="Claws">
            <action name="Execute">
                <execute>
                    claws-mail
                </execute>
            </action>
        </item>
        <item label="Comix">
            <action name="Execute">
                <execute>
                    comix
                </execute>
            </action>
        </item>
        <item label="Gedit">
            <action name="Execute">
                <execute>
                    gedit
                </execute>
            </action>
        </item>
        <item label="Run for the apps!!!">
            <action name="Execute">
                <execute>
                    gmrun
                </execute>
            </action>
        </item>
        <separator label=":: Odds n Sods ::"/>
        <menu id="apps-net-menu"/>
        <menu id="apps-term-menu"/>
        <menu id="apps-fileman-menu"/>
        <menu id="apps-multimedia-menu"/>
        <menu id="tools-menu"/>
        <menu id="apps-editors-menu"/>
        <menu id="file-stuff-menu"/>
        <separator label=":: Gubbins ::"/>
        <menu id="desktop-menu"/>
        <menu id="system-menu"/>
        <separator/>
        <item label="Fresh Air?">
            <action name="Execute">
                <execute>
                    oblogout
                </execute>
            </action>
        </item>
        <separator/>
    </menu>
</openbox_menu>all seems above board to me
Offline
Try firefox alone:
       <item label="urxvt-firefox">
            <action name="Execute">
                <execute>
                     urxvt -e /usr/bin/firefox
                </execute>
            </action>
        </item>Offline
yes firefox works that way, albeit without the libpng i need
Offline
How about running it w/o the single quotes?
urxvt -e LD_PRELOAD=/usr/lib/libpng12.so /usr/bin/firefox
Or maybe inside double-quotes?
urxvt -e "LD_PRELOAD=/usr/lib/libpng12.so /usr/bin/firefox"
Offline

karol, I think you will need the quotes since there is a space in the entire command.
Last edited by Inxsible (2010-07-20 15:53:13)
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
@ Inxsible
nwm now
Last edited by karol (2010-07-20 15:56:55)
Offline
karol, i'd tried those variations already. thanks a lot for the suggestions though
Offline
If the command
 urxvt -e "LD_PRELOAD=/usr/lib/libpng12.so /usr/bin/firefox"(or what ever) works fine from a terminal, you could save it in a script (mind the shebang) and run it from your menu.
That is way I handle the fact, that you can not you use && in the openbox menu.
Offline
how would i do that?
Offline
chmod +x /path/to/script
 <execute>
    /path/to/script
</execute>
Offline
Thanks  all sorted now.
 all sorted now.
Offline