Bug 10061 - openbox-menu (will fix bug 7340) to add all installed applications and auto-add new installs
Summary: openbox-menu (will fix bug 7340) to add all installed applications and auto-a...
Status: REOPENED
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Derek Jennings
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2013-05-11 00:33 CEST by thomas bjo
Modified: 2021-04-19 08:20 CEST (History)
3 users (show)

See Also:
Source RPM: openbox-menu-0.3.6.6-1-mdv2012.0.i586.rpm
CVE:
Status comment:


Attachments

Description thomas bjo 2013-05-11 00:33:39 CEST
Add openbox-menu to the repos to get a menu system in openbox that reflects the istalled applications.
The default install only adds a menu with suggestions and may or may not contain what you have on your system. 
This will fix it. Here is a suggestion of a menu.xml that you can use:
______________________________

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

<openbox_menu xmlns="http://openbox.org/3.4/menu">
<menu id="desktop-app-menu" label="Applications" execute="openbox-menu"/>
<menu id="root-menu" label="Openbox 3">
<separator label="Menu"/>
<menu id="desktop-app-menu"/>
<separator label="Favorites"/>
<item label="Firefox">
<action name="Execute">
<command>firefox http://bjoernvold.com/forum</command>
</action>
</item>
<item label="Konsole">
<action name="Execute">
<command>konsole</command>
</action>
</item>
<item label="Control panel">
<action name="Execute">
<command>mcc</command>
</action>
</item>
<separator label="Openbox"/>
<item label="Configuration">
<action name="Execute">
<command>obconf</command>
</action>
</item>
<item label="Configure panel">
<action name="Execute">
<command>tint2conf</command>
</action>
</item>
<item label="Reconfigure openbox">
<action name="Reconfigure"/>
</item>
<separator label="Session"/>
<item label="Exit">
<action name="Execute">
<command>openbox --exit</command>
</action>
</item>
</menu>
</openbox_menu>
_____________________________________
Manuel Hiebel 2013-05-11 23:15:08 CEST

Source RPM: ftp://rpmfind.net/linux/Mandriva/devel/cooker/i586/media/contrib/release/openbox-menu-0.3.6.6-1-mdv2012.0.i586.rpm => openbox-menu-0.3.6.6-1-mdv2012.0.i586.rpm
Keywords: (none) => Triaged
CC: (none) => dirteat

Derek Jennings 2013-06-15 19:05:33 CEST

CC: (none) => derekjenn
Assignee: bugsquad => derekjenn

Comment 2 Derek Jennings 2013-06-18 19:53:54 CEST
There is a method to add dynamic menus to desktops using xdg
see http://wiki.mandriva.com/en/Development/Howto/MenuMigrationToXDG#Support_for_older_window_managers

It is already implemented for IceWM and fluxbox. I will see if it can be implemented for openbox too.

That would be more elegant IMO than packaging openbox-menu.
Comment 3 Derek Jennings 2013-06-24 18:53:59 CEST
Marking this as 'resolved Wontfix' because dynamic xdg menus have now been implemented in the standard package  openbox-3.5.0-10.mga4 and  desktop-common-data-3.4-1.mga4. See Bug 7340

The fix uses the xdg_menu script present in desktop-common-data to create a supplemental openbox menu that is re-created each login.

Resolution: (none) => WONTFIX
Status: NEW => RESOLVED

Comment 4 thomas bjo 2014-02-09 18:14:37 CET
None of the installed programs are present after a traditional Openbox install.

A menu is there but it does not fire the applications - so this bug is not resolved?
Aka the present menu.xml does not work.

Resolution: WONTFIX => (none)
Status: RESOLVED => REOPENED

Comment 5 thomas bjo 2014-02-09 18:16:05 CET
This is the content of menu.xml after a vanilla install on a fresh mageia 4 install:

<?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">
    <menu id="Applications" />
    <separator />
    <menu id="client-list-menu" />
    <separator />
    <menu id="ob-menu" label="System">
     <item label="Configure Openbox"><action name="Execute"><execute>obconf</ex$
     <item label="Reload Openbox"><action name="Reconfigure" /></item>
     <item label="Configure your Computer"><action name="Execute"><execute>mcc<$
    </menu>
    <separator />
    <item label="Log Out"><action name="Exit" /></item>
</menu>
</openbox_menu>
Comment 6 thomas bjo 2014-02-10 10:48:02 CET
I cannot generate the xdg-menu either:
_________
xdg_menu --format openbox3 --root-menu /etc/xdg/menus/applications.menu >xdg-menu.xml
________
This does not work and neither does kde-applications.menu
Comment 7 thomas bjo 2014-02-10 12:37:05 CET
Ok I have found a workarround.

in ~/.config/openbox

generate the xdg-menu.xml like this:
::::::::
xdg_menu --format openbox3 --root-menu /etc/xdg/menus/applications.menu >xdg-menu.xml
::::::::

(you may use kde-applications.menu instead of applications-menu)

then copy the applications part (Skiping the header of the file) and paste it directly under <menu id="Applications" /> in menu.xml.

Here is my generated xdg-menu.xml - in my language, Applications is "Programmer"

:::::::::
<?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="xdg" label="xdg">

#Here is the part to copy and paste into menu.xml
<menu id="Programmer" label="Programmer">
 <menu id="DokumentasjonProgrammer" label="Dokumentasjon">
      <item label="Mageia MCC User Manual in english">
       <action name="Execute"><execute>/usr/bin/www-browser /usr/share/doc/mageia/en/mcc/index.html</execute></action>
     </item>
 </menu> <!-- Dokumentasjon -->
 <menu id="GrafikkProgrammer" label="Grafikk">
  <menu id="MerGrafikk" label="Mer">
       <item label="AcquireImages">
       <action name="Execute"><execute>scangui  -caption AcquireImages </execute></action>
     </item>
       <item label="DNG-omformer">
       <action name="Execute"><execute>dngconverter  -caption DNGConverter </execute></action>
     </item>
       <item label="Feh">
       <action name="Execute"><execute>feh </execute></action>
     </item>
       <item label="Gwenview">
       <action name="Execute"><execute>gwenview  -caption Gwenview </execute></action>
     </item>
       <item label="KSnapshot">
       <action name="Execute"><execute>ksnapshot -caption KSnapshot</execute></action>
     </item>
       <item label="Okular">
       <action name="Execute"><execute>okular   -caption Okular</execute></action>
     </item>
  </menu> <!-- Mer -->
      <item label="LibreOffice Draw">
       <action name="Execute"><execute>libreoffice --draw </execute></action>
     </item>
 </menu> <!-- Grafikk -->
 <menu id="InternettProgrammer" label="Internett">
  <menu id="MerInternett" label="Mer">
       <item label="BlueDevil">
       <action name="Execute"><execute>bluedevil-monolithic</execute></action>
     </item>
       <item label="KDE LM loggviser">
       <action name="Execute"><execute>ktp-log-viewer </execute></action>
     </item>
       <item label="KDE LM-kontakter">
       <action name="Execute"><execute>ktp-contactlist </execute></action>
     </item>
       <item label="KPPP">
       <action name="Execute"><execute>kppp</execute></action>
     </item>
       <item label="Konqueror">
       <action name="Execute"><execute>kfmclient openProfile webbrowsing</execute></action>
     </item>
  </menu> <!-- Mer -->
      <item label="Firefox">
       <action name="Execute"><execute>firefox </execute></action>
     </item>
      <item label="Nettverkssenter">
       <action name="Execute"><execute>/usr/bin/draknetcenter</execute></action>
     </item>
 </menu> <!-- Internett -->
 <menu id="KontorstøtteProgrammer" label="Kontorstøtte">
  <menu id="MerKontorstøtte" label="Mer">
       <item label="DigiDoc Client">
       <action name="Execute"><execute>qdigidocclient </execute></action>
     </item>
       <item label="DigiDoc Crypto">
       <action name="Execute"><execute>qdigidoccrypto </execute></action>
     </item>
  </menu> <!-- Mer -->
      <item label="LibreOffice Calc">
       <action name="Execute"><execute>libreoffice --calc </execute></action>
     </item>
      <item label="LibreOffice Draw">
       <action name="Execute"><execute>libreoffice --draw </execute></action>
     </item>
      <item label="LibreOffice Impress">
       <action name="Execute"><execute>libreoffice --impress </execute></action>
     </item>
      <item label="LibreOffice Writer">
       <action name="Execute"><execute>libreoffice --writer </execute></action>
     </item>
 </menu> <!-- Kontorstøtte -->
 <menu id="Lyd og bildeProgrammer" label="Lyd og bilde">
  <menu id="MerLyd og bilde" label="Mer">
       <item label="AMZ nedlaster">
       <action name="Execute"><execute>amzdownloader --amz </execute></action>
     </item>
       <item label="Amarok">
       <action name="Execute"><execute>amarok </execute></action>
     </item>
       <item label="Dragon Player">
       <action name="Execute"><execute>dragon </execute></action>
     </item>
       <item label="KsCD">
       <action name="Execute"><execute>kscd -caption KsCD </execute></action>
     </item>
  </menu> <!-- Mer -->
      <item label="PulseAudio Volume Control">
       <action name="Execute"><execute>pavucontrol</execute></action>
     </item>
      <item label="TVtime Television Viewer">
       <action name="Execute"><execute>tvtime</execute></action>
     </item>
 </menu> <!-- Lyd og bilde -->
 <menu id="UtviklingProgrammer" label="Utvikling">
  <menu id="UtviklingsmiljøerUtvikling" label="Utviklingsmiljøer">
       <item label="Geany">
       <action name="Execute"><execute>geany </execute></action>
     </item>
  </menu> <!-- Utviklingsmiljøer -->
 </menu> <!-- Utvikling -->
 <menu id="VerktøyProgrammer" label="Verktøy">
  <menu id="MerVerktøy" label="Mer">
       <item label="Ark">
       <action name="Execute"><execute>ark -caption Ark </execute></action>
     </item>
       <item label="Dolphin">
       <action name="Execute"><execute>dolphin  -caption Dolphin </execute></action>
     </item>
       <item label="ID-card Utility">
       <action name="Execute"><execute>qesteidutil </execute></action>
     </item>
       <item label="K3b">
       <action name="Execute"><execute>k3b </execute></action>
     </item>
       <item label="KCalc">
       <action name="Execute"><execute>kcalc -caption KCalc</execute></action>
     </item>
       <item label="KCharSelect">
       <action name="Execute"><execute>kcharselect -caption KCharSelect</execute></action>
     </item>
       <item label="KDE Systeminnstillinger">
       <action name="Execute"><execute>systemsettings -caption KDE System Settings </execute></action>
     </item>
       <item label="KSysGuard">
       <action name="Execute"><execute>ksysguard </execute></action>
     </item>
       <item label="KWalletManager">
       <action name="Execute"><execute>kwalletmanager </execute></action>
     </item>
       <item label="KWrite">
       <action name="Execute"><execute>kwrite </execute></action>
     </item>
       <item label="Konsole">
       <action name="Execute"><execute>konsole</execute></action>
     </item>
  </menu> <!-- Mer -->
  <menu id="SystemverktøyVerktøy" label="Systemverktøy">
       <item label="Apper">
       <action name="Execute"><execute>apper</execute></action>
     </item>
       <item label="BleachBit">
       <action name="Execute"><execute>bleachbit</execute></action>
     </item>
       <item label="Mageia Control Center">
       <action name="Execute"><execute>/usr/bin/drakconf</execute></action>
     </item>
       <item label="NetApplet">
       <action name="Execute"><execute>/usr/bin/net_applet --force</execute></action>
     </item>
       <item label="Nettverkssenter">
       <action name="Execute"><execute>/usr/bin/draknetcenter</execute></action>
     </item>
       <item label="PulseAudio Preferences">
       <action name="Execute"><execute>paprefs</execute></action>
     </item>
  </menu> <!-- Systemverktøy -->
      <item label="Adobe Flash Player">
       <action name="Execute"><execute>flash-player-properties</execute></action>
     </item>
      <item label="ChBg">
       <action name="Execute"><execute>chbg</execute></action>
     </item>
      <item label="Docky">
       <action name="Execute"><execute>docky</execute></action>
     </item>
      <item label="IcedTea-Web Control Panel">
       <action name="Execute"><execute>/usr/bin/itweb-settings.itweb</execute></action>
     </item>
      <item label="Mageia Welcome">
       <action name="Execute"><execute>mageiawelcome</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="Passord og nøkler">
       <action name="Execute"><execute>/usr/bin/seahorse</execute></action>
     </item>
      <item label="Språk og land">
       <action name="Execute"><execute>/usr/bin/localedrake</execute></action>
     </item>
      <item label="XTerm">
       <action name="Execute"><execute>xterm -name Terminal</execute></action>
     </item>
 </menu> <!-- Verktøy -->
     <item label="Installer og fjern programvare">
       <action name="Execute"><execute>/usr/bin/drakrpm</execute></action>
     </item>
</menu> <!-- Programmer -->
#End part to copy and paste into menu.xml

</menu>
</openbox_menu>
::::::::::::::
Comment 8 thomas bjo 2014-02-11 00:12:46 CET
You can forget the above.
The standard menu.xml will work for english systems but "Applications" has to be replaced with the equivalent in your locale.

Like "Programme" or "Programmer" in stead of "Applications".
Comment 9 thomas bjo 2014-02-12 18:10:18 CET
What remains is that new installed software is not reflected in the default Mageia 4 OB menu.
I have to run:

xdg_menu --format openbox3 --root-menu /etc/xdg/menus/applications.menu >xdg-menu.xml

to get the menu updated.
It also does not show icons.

Hence the reopened request for openbox-menu
Comment 10 Morgan Leijström 2021-04-19 08:20:53 CEST
Hi
What is the status here?

CC: (none) => fri


Note You need to log in before you can comment on or make changes to this bug.