JWM multiple root MENUS

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

JWM multiple root MENUS

#1 Post by Argolance »

Hello,
=> JWM Configuration allows multiple root MENUS.
Below are copies of the two configuration files that set 3 separate MENUS in the task bar. Besides, these MENUS can be displayed by clicking on any empty area of the desktop. Previous French version of 'Toutou LINUX', based on Puppy LINUX 4.31, came with a split '3 in 1' MENU that worked and still works perfectly with Puppy Lucid 5.x and Quirky 1.4.2. Details and pictures => 2Pmm: a 'split MENU' for Puppy...
:arrow: .jwmrc-tray:
<JWM>
<Tray autohide="false" insert="right" x="0" y="0" border="1" height="28">

<!-- Additional TrayButton attribute: label -->

<TrayButton popup="Session" icon="/usr/local/lib/X11/pixmaps/session-button.png">root:2</TrayButton>
<TrayButton popup="Programmes et raccourcis personnels" icon="/usr/local/lib/X11/pixmaps/programs-button.png">root:3</TrayButton>
<TrayButton popup="Configuration et réglages" icon="/usr/local/lib/X11/pixmaps/services-button.png">root:1</TrayButton>


[...]

</Tray>
</JWM>
:arrow: /ect/xdg/templates/_root_.jwmrc
<?xml version="1.0"?>

<JWM>

<!-- IMPORTANT, ONLY EDIT /etc/xdg/templates/_root_.jwmrc -->
<!-- jwm menu for puppy Linux -->
<RootMenu label="S E R V I C E S" labeled="true" height="20" onroot="1">
<Separator/>
<Program label="Aide" icon="/usr/local/lib/X11/pixmaps/help24.png">/usr/local/bin/Aide</Program>
<Separator/>
<Program label="Actualiser le MENU" icon="refresh24.png">exec /usr/bin/refresh-menus</Program>
<Program label="Console" icon="console24.png">rxvt</Program>
<Program label="Exécuter..." icon="run24.png">gexec</Program>
<Separator/>
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-desktop.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-system.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-setup.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-utility.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-filesystem.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-network.menu

</RootMenu>

<RootMenu label="S E S S I O N" labeled="true" height="20" onroot="2">

<Separator/>

<Program label="Verrouiller la session" icon="lock-screen24.png">exec /usr/local/apps/Xlock/AppRun</Program>

<Separator/>

<Program label="Eteindre l'ordinateur" icon="shutdown24.png">exec wmpoweroff</Program>
<Program label="Redémarrer l'ordinateur" icon="shutdown24.png">exec wmreboot</Program>

<Separator/>

<Program label="Redémarrer le serveur X" icon="x24.png">restartwm</Program>
<Restart label="Relancer JWM" icon="jwm24.png"/>
<Program label="Retour au prompt" icon="prompt24.png">exec wmexit</Program>

</RootMenu>
<RootMenu label="P R O G R A M M E S" labeled="true" height="20" onroot="3">

<Separator/>
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-shortcuts.menu
<Separator/>
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-graphic.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-document.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-calculate.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-personal.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-internet.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-multimedia.menu
PUPPYMENU jwm-xdgmenu /etc/xdg/menus/puppy-fun.menu

</RootMenu>

[...]

</JWM>
Running Wary/Racy 5.x, something is going wrong:
  • get the 3 buttons inside the task bar... This is OK!
    Clicks on desktop display MENUS... This is OK! But...
As soon as clicked on desktop to display MENUS, Pinboard doesn't work properly anymore: desktop shortcuts and drives icons don't react to mouse events :shock: and I get this error message in /tmp/xerrs.log:
** (ROX-Filer:5535): CRITICAL **: pinboard_pin_with_args: assertion `current_pinboard != NULL' failed
This occurs whatever the versions of JWM or ROX-Filer are (I tested with 2.9, 2.10, and fresh self compiled 2.11 releases). Neither the filer nor window manager seem to be the reason of the problem!
If running

Code: Select all

rox -p /root/Choices/ROX-Filer/PuppyPin
or getting back to the classical single Puppy MENU, all works well again! :(

Help would be very very appreciated!

Regards
Last edited by Argolance on Tue 07 Feb 2012, 14:58, edited 9 times in total.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#2 Post by Argolance »

Title and question changed to have more chances to get any answer about the issue described above.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#3 Post by technosaurus »

jwm_tools has a couple of scripts you can reference

jwm_menu_create does the normal menu - feel free to tweak it

jwm_install_menu_create builds a separate menu that lists all of the puppy .pets from supported repositories ... but in its own separate tray
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#4 Post by Argolance »

Hello,
Thank you for replying technosaurus!
Configurations files above are working fine with Puppy 4.31, Puppy Lucid 5.x and Quirky 1.4.2. I exactly get what I expect and I would like, if possible, to keep my script such as it is!
These configuration files partially work with latest releases of Puppy Wary/Racy 5.x... I only need help to understand why Pinboard doesn't work anymore, why desktop shortcuts and drives icons don't react to mouse events and then do appropriate corrections to make it work properly...

I suspect this is a bug specific to Wary/Racy 5.x...

Regards.

Post Reply