Hi, Fred.fredx181 wrote:Porteus-Wheezy2-deb-kern-3.2.0-4-486.iso
Uploaded here and first post updated:
http://www.smokey01.com/saintless/Porte ... -4-486.iso
I think it is best to keep it there if anyone else has troubles with newer kernel.
Toni
Hi, Fred.fredx181 wrote:Porteus-Wheezy2-deb-kern-3.2.0-4-486.iso
Code: Select all
#!/usr/bin/install-menu
compat="menu-1"
!include menu.h
outputencoding="LOCALE"
function iconordash()=ifelse(icon(),"\"" icon() "\"","-")
function q($com)=esc($com,"\"")
supported
x11= " prog \"" q(title()) "\" " iconordash() " /bin/sh -c \"" q($command) "\"\n"
text= " prog \"" q(title()) "\" " iconordash() " /bin/sh -c \"" q(term()) "\"\n"
wm= " restart \"" q(title()) "\" " iconordash() " /bin/sh -c \"" q($command) "\"\n"
endsupported
startmenu=ifneq($title,"Debian menu",ifroot("menu \"" q(title()) "\" folder {\n","menu \"" q(title()) "\" folder {\n"))
endmenu=ifneq($title,"Debian menu","}\n")
genmenu="programs"
#submenutitle=""
#submenutitle=" menu \"" $title "\" folder {\n"
#preoutput="\n"
rootprefix="/etc/X11/icewm/"
mainmenutitle="Debian menu"
#treewalk="(M)"
userprefix=".icewm"
Nice find!Hi, William, Fred and all interested from menu structure.
It is easy to get the result on the picture just by commenting few lines in /etc/menu-methods/icewm-common Run update-menus after the changes.
Here is full icewm-common content:
That's great news Toni. Good find indeed. I looked at that file in my struggles with translate_menus but never thought to think how it might work.saintless wrote:Hi, William, Fred and all interested from menu structure.
It is easy to get the result on the picture just by commenting few lines in /etc/menu-methods/icewm-common Run update-menus after the changes.
Code: Select all
#!/usr/bin/install-menu
compat="menu-1"
!include menu.h #<<<<<<<< William noted#
Code: Select all
root@debian:~# install-menu --help
install-menu [-vh] <menu-method>
Read menu entries from stdin in "update-menus --stdout" format
and generate menu files using the specified menu-method
Code: Select all
# -*- mode: shell-script; -*-
#The definitions here are used by all window managers that !include menu.h.
#This way, you can set your preferences (like whether to use xterm/rxvt,
#how long do you want your menu titles, etc) for all window-managers.
#
#This file is part of the menu package (version 1.4 and higher).
#For more information, see /usr/share/doc/menu/html
Code: Select all
#If you want menu to optimize the tree, set this to true:
hint_optimize=false
One subtle difference is in the arrangement of Administration and System subdirectories, but this alternative should also work with jwm. Also iceweasel, if installed, now appears on first level of Programs menu and everything now in alphabetical order!#The definitions here are used by all window managers that !include menu.h
Thank you! I will check it out proper tonight. Much work today unfortunately for DebianDog tests.mcewanw wrote:One subtle difference is in the arrangement of Administration and System subdirectories, but this alternative should also work with jwm. Also iceweasel, if installed, now appears on first level of Programs menu and everything now in alphabetical order!
Yes, I like it too but unfortunately I read many new programs stoped providing files for /usr/share/menu and I'm afraid debian menu will be history in the next debian stable. The need to install separate packages just to have working xdg_menu does not serves well for light and small system.The debian menu system turns out to be really clever. I like it!
Yes, I see that might be necessary for jwm.saintless wrote: I will check with JWM because it is already included in DebianDog remaster I have, but note JWM and other WM will not have separate menu file like ICEWM for Utilities and System menu above Programs menu.
If we decide to use menu.h edit for menu tree it will be better to reconstruct the menu and put all content from Utilities and System in Programs menu by creating files in /usr/share/menu. This way it will be visible for all WM.
Unfortunately true, as I commented in my earlier post:unfortunately I read many new programs stoped providing files for /usr/share/menu and I'm afraid debian menu will be history in the next debian stable. The need to install separate packages just to have working xdg_menu does not serves well for light and small system.
Most apps are pretty sure to be going to need to include .desktop files though, so it will still be worth working on a 'scan desktop files'/'translate from xdg' approach in the future (hopefully one that is tiny to implement). Actually, I think it could be relatively easy, to loop through all desktop files and translate them into equivalent entries in /usr/share/menu, but that is not going to help if the debian menu system itself (its program parts) simply vanishes.mcewanw wrote: Seems that Debian aren't too sure about whether to continue with Debian menu system:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=707851
so I'm presuming one must be provided by jwm (if from Debian pkg).Each package containing a menu manager (i.e., a program that can display a menu) should provide a script or program in /etc/menu-methods/ that can read the menu files.
...
Good examples for these scripts for nearly all Debian window managers are included in the menu package in /usr/share/doc/menu/examples. Note that while working on your script, you can use the tricks described in "The internals of the menu package", section "The update-menus program", to run just your script, instead of having update-menus run all scripts (can save quite a lot of time).
EDIT2: well there is a file /etc/menu-methods/jwm which has "!include menu.h" but yes, we don't get the top level Utilities and System menus as you say Toni. Well... there is a sample /etc/jwm/system.jwmrc, which could be modified and copied over to ~/.jwmrc and then modified.There is no automatic configuration which would add programs to the menus. Edit /etc/jwm/jwmrc or copy it to personal ~/.jwmrc startup file.
Hi, William.mcewanw wrote:Remove the comments you put in icewm-common, Toni, and change from false to true inside /etc/menu-methods/menu.h the following:
Then run update-menus and check the result.Code: Select all
#If you want menu to optimize the tree, set this to true: hint_optimize=false
Hmmm, the result is different, but I'm wondering if I made a mistake. I'll check again on a clean live-rw. I was getting a menu very similar to what you had commenting out the submenus. I'll report back later.saintless wrote:Hi, William.
See the result on the picture after changing false to true.
Is this what I should see or I have to make other changes?
Isn't less submenus what we are looking for or I do something wrong and the result is different for you?
Debian docs say source varies with config. & setup, so it`s hard to know.If you are going to add option in your scripts to create .desktop files, you should make also possible to add file in /usr/share/menu
DebianDog auto-creates menu entry from there.
Code: Select all
mksquashfs /live/cow /live/image/live/02-new-wallpapers.squashfs
Hi, Terry.sunburnt wrote:Toni; You say menu files in /usr/share/menu are the menu`s source files.?Debian docs say source varies with config. & setup, so it`s hard to knowIf you are going to add option in your scripts to create .desktop files, you should make also possible to add file in /usr/share/menu
DebianDog auto-creates menu entry from there.
Toni, it was because I had some other applications installed and debian menu system is semi-intelligent so reorganises menus best it can when hint_optimize=true.saintless wrote: Hi, William.
See the result on the picture after changing false to true.
Is this what I should see or I have to make other changes?
Isn't less submenus what we are looking for or I do something wrong and the result is different for you?
Toni
Code: Select all
#If you want menu to optimize the tree, set this to true:
hint_optimize=true
#for more info on the other variables, see /usr/share/doc/menu/
#hint_nentry=6
hint_topnentry=7
hint_mixedpenalty=64
Toni, it was because I had some other applications installed and debian menu system is semi-intelligent so reorganises menus best it can when hint_optimize=true.saintless wrote: Hi, William.
See the result on the picture after changing false to true.
Is this what I should see or I have to make other changes?
Isn't less submenus what we are looking for or I do something wrong and the result is different for you?
Toni
Code: Select all
#If you want menu to optimize the tree, set this to true:
hint_optimize=true
#for more info on the other variables, see /usr/share/doc/menu/
#hint_nentry=6
hint_topnentry=7
hint_mixedpenalty=64
Code: Select all
sort=$sort ":" ifelse($command, "1", "0" ) ":" title()
hint_optimize=true
hint_nentry=5
hint_topnentry=7
hint_mixedpenalty=15
hint_max_ntry=3 # maybe not needed if hints_max_iter_hint=10 is on
hints_max_iter_hint=10 # may be not needed if hint_max_ntry=3 is on
Hi Toni, Yes, I had previously also tried various hints to see if I could encourage mplayer into the Graphics folder but realised it wouldn't do it when only graphics program. The combination you suggest is fine as far as I am concerned though. Anyway, should anyone ever install another graphics program, the Graphics folder will automagically appear anyway, so no problem really! :-) Main thing is that the long sequence of submenus has gone. Very good I feel. I imagine Debian will eventually come up with some modification to menu system that uses .desktop files instead of /usr/share/menu items, but using hints like this saves needing to add the 5MB perl addition at least and with similar result. A machine-created menu can never be as aesthetically pleasing as one specially crafted by a human I feel. Nevertheless, it's not bad and saves a lot of human tinkering.saintless wrote: The problem is mpaint stays program menu entry and there is no Graphics folder. To get it in Graphics folder we need to install xpaint first or another Graphic appication. It is like minimum 2 programs are needed for menu folder but I can't find the right combinantion. Every simple change in some hint breaks everything.
Please. test this combination and write if it is Ok for you. It gives almost the same (but not the same) menu for JWM and IceWM
Hi Toni, Williamsaintless wrote:Hi, William.
Experimented a little with menu.h hints and this is the best change I can make to the moment.
The problem is mpaint stays program menu entry and there is no Graphics folder. To get it in Graphics folder we need to install xpaint first or another Graphic appication. It is like minimum 2 programs are needed for menu folder but I can't find the right combinantion. Every simple change in some hint breaks everything.Code: Select all
sort=$sort ":" ifelse($command, "1", "0" ) ":" title() hint_optimize=true hint_nentry=5 hint_topnentry=7 hint_mixedpenalty=15 hint_max_ntry=3 # maybe not needed if hints_max_iter_hint=10 is on hints_max_iter_hint=10 # may be not needed if hint_max_ntry=3 is on
Please. test this combination and write if it is Ok for you. It gives almost the same (but not the same) menu for JWM and IceWM
Toni
I'm fine with either method Fred.fredx181 wrote:Hi Toni, Williamsaintless wrote:Hi, William.
Experimented a little with menu.h hints and this is the best change I can make to the moment.
The problem is mpaint stays program menu entry and there is no Graphics folder. To get it in Graphics folder we need to install xpaint first or another Graphic appication. It is like minimum 2 programs are needed for menu folder but I can't find the right combinantion. Every simple change in some hint breaks everything.Code: Select all
sort=$sort ":" ifelse($command, "1", "0" ) ":" title() hint_optimize=true hint_nentry=5 hint_topnentry=7 hint_mixedpenalty=15 hint_max_ntry=3 # maybe not needed if hints_max_iter_hint=10 is on hints_max_iter_hint=10 # may be not needed if hint_max_ntry=3 is on
Please. test this combination and write if it is Ok for you. It gives almost the same (but not the same) menu for JWM and IceWM
Toni
I think Toni's previous solution with the edited icewm-common only was just about perfect.
Why change it with some problematic setup that could possibly also work with JWM.
After all DebianDog uses icewm, nothing else.
Maybe it's possible to make same sort of solution (simular to editing icewm-common) with JWM and include that in the JWM.deb.
Just some thoughts..
EDIT;
btw, I just noticed that gpicview appears not in the menu (because not present in /usr/share/menu but it is in /usr/share/applications)
Regards
Fred