You are not logged in.
Hello #!,
I hacked together a simple automated menu system, so I'm sharing it with you. 
It's mostly mix between mint-fm2 and Fedora's openbox xdg-menu,
The script generates an "Applications" pipemenu that you can include in your openbox menu.
Also included is a rewrite in Python of the crunchbang "Places" script.
Now the folders appear at the top, like in most file managers.
You can also open file and/or folders with exo-open or gnome-open or whatever-open...
Check it out at http://github.com/ju1ius/marchobmenu
Bye !
Last edited by ju1ius (2010-08-28 17:44:36)
Offline
I've been wondering about the possibility of automating the menu system... sometimes when i'm trying out a program i'm too lazy to add it manually to the menu system, and sometimes it isn't as simple as typing the program name at the run program prompt. So I'm gonna try this out!
Thanks
Last edited by mrpeachy (2009-12-28 20:10:12)
Offline
My Fluidr (= Fickr) : http://www.fluidr.com/photos/kookadimi/sets
Offline
I installed the source package, and had to clean up your locale files for en and de.
en: changed line 8 from "Sound & Video" to "Sound & Video"
en: changed line 10 from "Quit" to "Preferences"
de: changed line 10 from "Beenden" to "Einstellungen".

Offline
Thanks, this is fixed !
Offline
Thank you ju1ius. Installed and worked perfectly, without a hitch!
I should be able to dispense with xfce-panel at this rate.
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
Probably expected, but this doesn't work with #! x86_64... Thanks anyway. 
Offline
Probably expected, but this doesn't work with #! x86_64... Thanks anyway.
Well, that's pretty strange because it's just a bunch of bash scripts ... 
Could you open a ticket and help me on this one ?
Like by describing more precisely what happens ?
Or fix it ? 
I have no 64bits machine...
Offline
Ah ju1ius, one bug report, or enhancement request:
marchobmenu doesn't seem to look in /usr/local/shared/applications for .desktop files.
When I installed fotoxx from a .deb that's where it went, and fotoxx didn't appear in your menu.
xfce's menu got it OK.
Last edited by johnraff (2010-01-25 11:34:15)
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
ju1ius, love it
have linked it from my blog too. It works great here, dead neat thanks.
I blog too much.... geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao
Offline
I just couldn't install the deb package: "Error: Wrong architecture 'i386'".
On review, the problem resides with the deb not being compatible with 'all' instead of just 'i386' (haven't tried the dpkg --force route).
Ticket opened: http://code.google.com/p/marchobmenu/issues/detail?id=2
TIA,
Offline
marchobmenu doesn't seem to look in /usr/local/shared/applications for .desktop files.
And I think it shouldn't...
I use the /usr/local dir for the applications I want to test by compiling from source.
When i'm shure I want to install it, I recompile with --prefix=/usr.
I wouldn't like having my menu cluttered by those testing apps.
An easy fix for you is:
sudo ln -s /usr/local/share/applications/fotoxx.desktop /usr/share/applicationsOn review, the problem resides with the deb not being compatible with 'all' instead of just 'i386'
Thanks for pointing this out !
I changed the packages properties.
Can you confirm this is fixed ?
Offline
johnraff wrote:marchobmenu doesn't seem to look in /usr/local/shared/applications for .desktop files.
And I think it shouldn't...
I use the /usr/local dir for the applications I want to test by compiling from source.
When i'm shure I want to install it, I recompile with --prefix=/usr.
I wouldn't like having my menu cluttered by those testing apps.
That's fair enough. There is a point of view that /usr/share should be only for apps installed though the "official" system channels, and anything else should go in /usr/local, but it comes down to taste here I suppose, or whether a lot of your system is locally compiled or mostly from the repositories. A lot of deb files that you can download independently seem to install to /usr/local, which I prefer I think.
So it wasn't a bug it was a feature 
(still a very nice menu btw)
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
New version available !
changelog:
* more locales
* fixed parsing for "System" and "Preferences" categories
* added a "Wine" category
#! 
Offline
ju1ius, it might need a little tweaking: I didn't find any "wine" category (I have got wine installed), and the "other" category has some empty spaces.
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
Thanks for the feedback johnraff, but could you help me a little more ?
A screenshot is useless for me to solve your issue...
The first thing you could try is:
1. look into your "~/.config/openbox/marchobmenu/submenus/Other" file.
This file should contain the name of the problematic .desktop files.
2. Try moving the problematic .desktop file out of the /usr/share/applications directory, then moving them back in
If it stilll doesn't work, please file a bug at the google code repository, and describe the issue precisely.
Be sure to join your "~/.config/openbox/marchobmenu/submenus/Other" file.
You could also do this:
change this line in your startup file from:
/usr/lib/marchobmenu/./marchobmenu-launcher &> /dev/null
to
/usr/lib/marchobmenu/./marchobmenu-launcher > ~/marchobmenu.log
Then logout, log back in, repeat steps 1 & 2 and join the ~/marchobmenu.log file to your bug report.
This is the only way for me to understand what's going wrong here 
Thanks for your feedback !
Offline
I find this a very useful addition to the default #! menu, and I'm happy to help if I can...
I'll post a bug report, but might as well put it here too. Some entries in ~/.config/openbox/marchobmenu/submenus/Others were for apps not installed that had left desktop files behind: those appeared in the menu, as of course they should - I deleted the desktop files. The blank spaces in the "Others" menu were related to real desktop files, but the data had been corrupted. You can see also that the ".desktop" ending had been dropped from the filenames. Here's the file:
<item label="About Xfce" id="/usr/share/applications/xfce4-about-xfce.desktop"><action name="Execute"><execute>xfce4-about</execute></action></item>
<item label="Browse C:\ Drive" id="/usr/share/applications/wine-browsedrive.desktop"><action name="Execute"><execute>xdg-open .wine/dosdevices/c:</execute></action></item>
<item label="Configure Wine" id="/usr/share/applications/wine-winecfg.desktop"><action name="Execute"><execute>winecfg</execute></action></item>
<item label="File Manager" id="/usr/share/applications/xfce4-file-manager.desktop"><action name="Execute"><execute>Thunar</execute></action></item>
<item label="Help" id="/usr/share/applications/xfce4-help.desktop"><action name="Execute"><execute>xfhelp4</execute></action></item>
<item label="" id="/usr/share/applications/firefox-3.5"><action name="Execute"><execute></execute></action></item>
<item label="" id="/usr/share/applications/openoffice.org-base"><action name="Execute"><execute></execute></action></item>
<item label="" id="/usr/share/applications/openoffice.org-calc"><action name="Execute"><execute></execute></action></item>
<item label="" id="/usr/share/applications/openoffice.org-draw"><action name="Execute"><execute></execute></action></item>
<item label="" id="/usr/share/applications/openoffice.org-impress"><action name="Execute"><execute></execute></action></item>
<item label="" id="/usr/share/applications/openoffice.org-math"><action name="Execute"><execute></execute></action></item>
<item label="" id="/usr/share/applications/openoffice.org-writer"><action name="Execute"><execute></execute></action></item>
<item label="" id="/usr/share/applications/python2.5"><action name="Execute"><execute></execute></action></item>
<item label="IE6" id="/usr/share/applications/ie6.desktop"><action name="Execute"><execute>ie6</execute></action></item>
<item label="Log Out" id="/usr/share/applications/xfce4-logout.desktop"><action name="Execute"><execute>xfce4-session-logout</execute></action></item>
<item label="Notepad" id="/usr/share/applications/wine-notepad.desktop"><action name="Execute"><execute>notepad</execute></action></item>
<item label="Run Program..." id="/usr/share/applications/xfce4-run-program.desktop"><action name="Execute"><execute>xfrun4</execute></action></item>
<item label="Terminal" id="/usr/share/applications/xfce4-term.desktop"><action name="Execute"><execute>exo-open --launch TerminalEmulator</execute></action></item>
<item label="Uninstall Wine Software" id="/usr/share/applications/wine-uninstaller.desktop"><action name="Execute"><execute>wine uninstaller</execute></action></item>
<item label="Web Browser" id="/usr/share/applications/xfce4-web-browser.desktop"><action name="Execute"><execute>exo-open --launch WebBrowser </execute></action></item>Now, moving the desktop files related to the bad entries out of /usr/share/applications and logging out/in again resulted in no change to the "others" file. The deleted files (eg the "About Xfce" entry at the top) were still referred to, as were the ones that had been moved out. Moving them back in and redoing logout/in again made no change. A desktop file I created yesterday (the "IE6" item) was correctly added to the menu though...
Here's the marchobmenu.log file:
============================> /usr/lib/marchobmenu/./marchobmenu-launcher
Starting marchobmenu-launcher
daemon found 5165 john inotifywait -q -m -r --format %f -e create /home/john/.config/openbox/marchobmenu/triggers
killing 5165
Check for pending updates ...
============================> /usr/lib/marchobmenu/./marchobmenu-userdaemon
( desktop files moved )
============================> /usr/lib/marchobmenu/./marchobmenu-launcher
Starting marchobmenu-launcher
daemon found 8295 john inotifywait -q -m -r --format %f -e create /home/john/.config/openbox/marchobmenu/triggers
killing 8295
Check for pending updates ...
============================> /usr/lib/marchobmenu/./marchobmenu-userdaemon
(desktop files restored)
============================> /usr/lib/marchobmenu/./marchobmenu-launcher
Starting marchobmenu-launcher
daemon found 10431 john inotifywait -q -m -r --format %f -e create /home/john/.config/openbox/marchobmenu/triggers
killing 10431
Check for pending updates ...
============================> /usr/lib/marchobmenu/./marchobmenu-userdaemonAnyway, I'll post all this to that google site as well.
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
I also have this problem. The 'Others' category grows with empty entries and some entries persist for programs long gone.
I have edited them out of the menu and made sure the desktop files are gone, still they just come back.
I wont post my details as they are pretty much the same situation as above.
I blog too much.... geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao
Offline
Trying it on Arch now and have a new problem (most probably caused by me
)
Here is the issue.
[fixed] Ok, fixed it now. Not my error, the outputted xml had an unescaped '&' that was breaking the menu.
Last edited by tawan (2010-03-06 00:14:16)
I blog too much.... geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao
Offline
@ju1ius did you see drsjiazar replied to you on Arch? He sent you a PM there I guess.
I blog too much.... geek stuff LinuxMintDebian | linux noob stuff LinuxMintNoob | spiritual stuff Daily Cup of Tao
Offline
ju1ius, I owe you a humble apology - I was using the previous version of marchobmenu, 0.1.1-1. (Fortunately I did mark it as such in the bug report.)
When I deleted my ~/.config/openbox/marchobmenu folder and upgraded to 0.1.2-1 everything was fixed! Openoffice entries are fine, likewise "wine" and "others" categories, no blank entries and no leftover entries from deleted .desktop files. marchobmenu is a very nice addition to the openbox menu.
Now the only issue remaining is desktop files with the line
Terminal=true
for example the menu "htop" entry is executed with the command "htop", where "terminator htop" or "x-terminal-emulator htop" would be needed. I'll post a report. (marchobmenu is not alone here though, the xfce menu seems to have the same problem.)
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
...oops, spoke too soon. Now I've got no "multimedia" submenu, or whatever the name for the audio/video stuff should be. It appears in xfce's menu OK, and was there with marchobmenu 0.1.1-1
This must be harder than it looks 
John
--------------------
( a boring Japan blog , and idle twitterings )
Offline
Marchobmenu first stable release is out ! 
It has been heavily refactored the daemon is still very lightweight (written in bash),
but the menu is now generated by a python script,
and is now fully XDG compliant thanks to the python-xdg module !
Please check it out on github:
http://github.com/ju1ius/marchobmenu
There's also a package available:
http://github.com/ju1ius/marchobmenu/downloads
PS:
apologies for my long silence here but I was stuck with an old mint-fluxbox-5 distro,
and couldn't develop this furthermore.
I'm now back to openbox, with a new shiny "crunbangified" Debian Sid !
Offline
And a new version again (1.2), with a few minor improvements.
I added a command to refresh the menu, so it can now be used (but won't auto-refresh) without the daemon running for those who like to save the extra Mb of RAM.
The places script can now open files (and folders) with exo-open or gnome-open.
Folders are now showed at the top, like in most file managers.
There's also a Wiki,
and of course a new debian package
Offline
New version 1.3 with a major improvement:
MarchOBMenu now uses the dpkg trigger system on distributions using dpkg/apt.
It means that in this case the menu daemon is no longer needed, except if you modified a .desktop file manually !
It also means that if you install 25 applications at once, the menu is only regenerated once !
Now we're getting close to something useful !
Other distros using rpm or pacman still need the daemon, until i find something else...
Last edited by ju1ius (2010-08-28 17:52:24)
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.