Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 08:10
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
JWM multiple root MENUS
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1851
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 03 Feb 2012, 11:29    Post_subject:  JWM multiple root MENUS
Sub_title: Doesn't work properly... with Puppy Wary/Racy 5.2.2!
 

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:
Quote:
<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
Quote:
<?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 Shocked and I get this error message in /tmp/xerrs.log:
Quote:
** (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:
rox -p /root/Choices/ROX-Filer/PuppyPin

or getting back to the classical single Puppy MENU, all works well again! Sad

Help would be very very appreciated!

Regards

_________________


Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
Argolance


Joined: 06 Jan 2008
Posts: 1851
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 05 Feb 2012, 13:04    Post_subject:  

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

Back to top
View user's profile Send_private_message Visit_website 
technosaurus


Joined: 18 May 2008
Posts: 4426

PostPosted: Sun 05 Feb 2012, 14:42    Post_subject:  

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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Argolance


Joined: 06 Jan 2008
Posts: 1851
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Mon 06 Feb 2012, 12:36    Post_subject:  

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.

_________________

Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0731s ][ Queries: 12 (0.0093s) ][ GZIP on ]