View previous topic :: View next topic |
Author |
Message |
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Wed May 18, 2005 12:16 am Post subject: |
|
|
I understand that icons are needed. 3.x will have import functions so you wont have to start from scratch. I'll respond to the idea that the FreeDesktop standard is easy to edit after I go to my first LUG meeting. |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Wed May 18, 2005 5:01 am Post subject: |
|
|
I've been thinking about the Free Desktop spec. For me its the lack of control available with that setup. The spec is run off one main file either /etc/xdg/applications.menu or ~/.config/menus/applications.menu. Originally this file just tells what folder contains what types of desktop files. If something wants be included or excluded one must first find the file or name and include it in this file. This spread of information is what makes it tough to use customize. It allows for optimal menu generation for beginning users but is a struggle for power users. Having all of the information available in one file is convenient.
The FD spec has its advantages. However, KDE and Gnome's dependencies on it has revealed its limitations, such as editing issues. A good implementation of this is in Xfce4. The menu is run off of an XML file which allows the inclusion of the free desktop menu or individual entries. Here is the top of the file.
Code: | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xfdesktop-menu>
<!--
Explanantion of Xfce 4 menu file:
=================================
Here we will try to explain the format of the menu file. Look at the
actual menu below for the real examples. You shouldn't really need to
edit this manually; check out xfce4-menueditor instead.
-->
<!-- Obviously, this is how you make a comment ;-) -->
<!--
+ Everything is between exactly one pair of
<xfdesktop-menu></xfdesktop-menu> tags.
+ Applications:
<app name="Name in menu" cmd="Command to run" term="false"
icon="iconfile" snotify="false" visible="true" />
The 'term' attribute determines if the program needs a terminal to run,
and 'snotify' sets whether or not the program supports startup
notification. You can set an icon to be displayed next to the item with
the 'icon' attribute. Only 'name' and 'cmd' are required.
+ Separators:
<separator visible="true" />
Creates a horizontal separator. The 'visible' attribute is optional.
+ Submenus:
<menu name="Name in menu" icon="iconfile" visible="true"></menu>
Only 'name' is required, but you can also set an icon to be displayed using
the 'icon' attribute. Between the menu tags you can define more
applications, separators and menus.
+ Titles
<title name="Name in menu" icon="iconfile" visible="true" />
Creates an insensitive menu title. You can even add an optional icon to
the title if you'd like.
+ Including other files:
<include type="file" src="menu2.xml" visible="true" />
Includes the file menu2.xml. A relative path is assumed to be rooted at
~/.xfce4/. An absolute path will be treated as such.
+ Including an autogenerated system menu:
<include type="system" style="simple" unique="true" visible="true" />
Includes a system menu. style can be "simple" or "multilevel". If unique
is set to "false", multiple menu items will be generated if the app
appears in multiple categories.
--> |
I think that explains itsself. That system, I love. Its awesome. However, I couldn't use that format for denu because the denu format needs to be more flexible. Thats why I came up with the denu format which is used both in the saved files and internally. |
|
Back to top |
|
|
lanius Retired Dev
Joined: 08 Dec 2002 Posts: 160
|
Posted: Wed May 18, 2005 5:20 am Post subject: |
|
|
It's especially designed for PowerUsers, it's very flexible. But for denu you don't need more then:
<Menu>
<Name>Test</Name>
<Include>
<Filename>test.desktop</Filename>
</Include>
</Menu>
I don't see how that is very different from
<xfdesktop-menu>
<menu Name="Test"</Menu>
<app name="Test in menu" />
</xfdesktop-menu>
There currently is no component to edit .menu Files in pyxdg, only to parse. But I'm willing to help writing one. |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Thu May 19, 2005 3:48 am Post subject: |
|
|
The difference occurs in your syntax for xfdesktop. <app> does not include a .desktop entry it just generates the entry based on the required name and command attributes. Having this is convenient. However one must consider the differences between what the Xfce menu has to store and what the FD menus must store, more specifically, locale information. The FD spec must include much more locale info. |
|
Back to top |
|
|
iverson0881 Apprentice
Joined: 08 Jan 2004 Posts: 285 Location: CA
|
Posted: Fri May 20, 2005 9:20 am Post subject: |
|
|
Alright so I tried this out and it wasn't for me. How do I remove the newly generated menus. I've tried re emerging gnome-menus but that didn't work so its configuration lies somewhere else. I'm using gnome 2.10 |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Fri May 20, 2005 10:10 pm Post subject: |
|
|
Look back in this thread. Or search in the forums its around. |
|
Back to top |
|
|
iverson0881 Apprentice
Joined: 08 Jan 2004 Posts: 285 Location: CA
|
Posted: Fri May 20, 2005 11:35 pm Post subject: |
|
|
i found this in the previous pages
Quote: | You can try removing home/.gnome2/vfolders/applications.vfolder-info. If that does not work copy /etc/gnome-vfs-2.0/vfolders/applications-all-users.vfolder-info to home/.gnome2/vfolders as applications.vfolder-info or as applications-all-users.vfolder-info. I hope that works. Thanks for your interest in denu. |
but that didnt work for me. I ended up removing my entire .gnome2 folder and that did nothing either. any other suggestions? |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Sat May 21, 2005 2:08 am Post subject: |
|
|
remove ~/.config/menus/applications.menu |
|
Back to top |
|
|
bravecobra Tux's lil' helper
Joined: 26 Dec 2002 Posts: 130 Location: Planet Earth (sometimes)
|
Posted: Sun May 22, 2005 5:00 am Post subject: |
|
|
TanNewt wrote: | To use it with KDE is a little more difficult than simply generating. Do this: Quote: | 1)Install KDE.
2) Add Code: | <MergeFile>denu.menu</MergeFile> |
in ~/.config/menus/applications-kmenuedit.menu before the last | If applications-kmenuedit does not exist change one thing on your menu with kmenuedit and it will be created. |
Finally a great way to edit your menu. However in KDE there still seems to be a little problem. When I generate a menu for KDE, all the denu items end up in the Lost & Found folder. I tried the above too, but then my menu even gets stripped from all the items I had already.
I'm currently using denu 2.3.2 _________________ Brave Cobra
http://www.bravecobra.com |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Sun May 22, 2005 6:48 pm Post subject: |
|
|
KDE 3.4? Generate with gnome 2.10, they use the same spec. |
|
Back to top |
|
|
Gherald Veteran
Joined: 23 Aug 2004 Posts: 1399 Location: CLUAConsole
|
Posted: Wed May 25, 2005 11:42 pm Post subject: |
|
|
a couple of feature requests:
-button to create a copy of an entry to drag somewhere else. For instance, I like having an entry for my main xterm, browser, irc client, etc. in both the root menu and under the corresponding submenu alongside similar programs...
-programable button in the main program window that generates configs en masse for select WM/DEs with 1-click. For instance, this could be the current "generate" button and a new button could be added that lists all WM/DEs with a checkbox next to them that gets saved. |
|
Back to top |
|
|
AceOfAces_TS n00b
Joined: 13 Sep 2004 Posts: 31 Location: Minnesota, USA
|
Posted: Mon Jun 27, 2005 9:01 pm Post subject: |
|
|
TanNewt wrote: | Just an update, anyone who has ideas on improving denu please join the mailing lists on berlios. We're in the brainstorming process for denu 3.x . Here is our current list.
Email wrote: |
Alright here is the skeleton if you will for denu 3.x structure.
Denu Modules -
Free Desktop
Fluxbox
Openbox
Waimea
IceWM
Xfce4
Enlightenment
Various Panels
|
|
I'm guessing by enlightenment you mean E16 not E17, or will both be suported? _________________ We don't need a fountain of youth, we need a fountain fo SMART! |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Tue Jun 28, 2005 12:47 am Post subject: |
|
|
I was thinking more along the lines of enlightenment 17. However, I'm not at that point with 3.x . |
|
Back to top |
|
|
djh-world Apprentice
Joined: 04 Jan 2004 Posts: 281 Location: Nottingham, UK
|
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Tue Jun 28, 2005 4:15 pm Post subject: |
|
|
Do the folders have different icons in Denu? |
|
Back to top |
|
|
djh-world Apprentice
Joined: 04 Jan 2004 Posts: 281 Location: Nottingham, UK
|
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Wed Jun 29, 2005 6:43 am Post subject: |
|
|
Hmm, not sure. Looks like its using the wrong directory files. Do you know what directory .directory files are stored in for the user? |
|
Back to top |
|
|
djh-world Apprentice
Joined: 04 Jan 2004 Posts: 281 Location: Nottingham, UK
|
Posted: Wed Jun 29, 2005 11:15 am Post subject: |
|
|
This is the output of
Quote: | daniel@danpc ~ $ locate *.directory
/home/daniel/.kde/share/applnk/CrossOver/.directory
/home/daniel/.gnome/apps/Windows_Applications/.directory
/home/daniel/.gnome/apps/Windows_Applications/Programs/.directory
/home/daniel/.gnome/apps/Windows_Applications/Programs/Microsoft_Office_Tools/.d
irectory
/home/daniel/.gnome/apps/CrossOver/.directory
/usr/share/desktop-directories/Settings.directory
/usr/share/desktop-directories/Accessibility.directory
/usr/share/desktop-directories/Edutainment.directory
/usr/share/desktop-directories/Office.directory
/usr/share/desktop-directories/Applications.directory
/usr/share/desktop-directories/Accessories.directory
/usr/share/desktop-directories/Settings-Accessibility.directory
/usr/share/desktop-directories/System-Tools.directory
/usr/share/desktop-directories/Internet.directory
/usr/share/desktop-directories/Other.directory
/usr/share/desktop-directories/Development.directory
/usr/share/desktop-directories/Multimedia.directory
/usr/share/desktop-directories/Graphics.directory
/usr/share/desktop-directories/Games.directory
/usr/share/desktop-directories/System-Settings.directory
/usr/kde/3.4/share/desktop-directories/kde-office.directory
/usr/kde/3.4/share/desktop-directories/kde-settings.directory
/usr/kde/3.4/share/desktop-directories/kde-internet-terminal.directory
/usr/kde/3.4/share/desktop-directories/kde-information.directory
/usr/kde/3.4/share/desktop-directories/kde-system-terminal.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-looknfeel.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-sound.directory
/usr/kde/3.4/share/desktop-directories/kde-science.directory
/usr/kde/3.4/share/desktop-directories/kde-games-kidsgames.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-desktop.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-accessibility.directory
/usr/kde/3.4/share/desktop-directories/kde-settingsmenu.directory
/usr/kde/3.4/share/desktop-directories/kde-edutainment.directory
/usr/kde/3.4/share/desktop-directories/kde-development.directory
/usr/kde/3.4/share/desktop-directories/kde-games-card.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-security.directory
/usr/kde/3.4/share/desktop-directories/kde-games-strategy.directory
/usr/kde/3.4/share/desktop-directories/kde-games-roguelikes.directory
/usr/kde/3.4/share/desktop-directories/kde-multimedia.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-components.directory
/usr/kde/3.4/share/desktop-directories/kde-internet.directory
/usr/kde/3.4/share/desktop-directories/kde-games.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-network.directory
/usr/kde/3.4/share/desktop-directories/kde-toys.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-power.directory
/usr/kde/3.4/share/desktop-directories/kde-unknown.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-peripherals.directory
/usr/kde/3.4/share/desktop-directories/kde-utilities.directory
/usr/kde/3.4/share/desktop-directories/kde-games-board.directory
/usr/kde/3.4/share/desktop-directories/kde-main.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-webbrowsing.directory
/usr/kde/3.4/share/desktop-directories/kde-games-arcade.directory
/usr/kde/3.4/share/desktop-directories/kde-graphics.directory
/usr/kde/3.4/share/desktop-directories/kde-system-screensavers.directory
/usr/kde/3.4/share/desktop-directories/kde-utilities-xutils.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-system.directory
/usr/kde/3.4/share/desktop-directories/kde-settings-hardware.directory
/usr/kde/3.4/share/desktop-directories/kde-editors.directory
/usr/kde/3.4/share/desktop-directories/kde-system.directory
/usr/kde/3.4/share/desktop-directories/kde-more.directory
/usr/kde/3.4/share/apps/khelpcenter/plugins/Scrollkeeper/.directory
/usr/kde/3.4/share/apps/khelpcenter/plugins/Tutorials/.directory
/usr/kde/3.4/share/apps/khelpcenter/plugins/Applications/.directory
/usr/kde/3.4/share/apps/khelpcenter/plugins/Manpages/.directory
/usr/kde/3.4/share/applnk/.hidden/.directory
|
If that helps? _________________ djh-solutions :: freelance web design | solution provider |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Thu Jun 30, 2005 5:10 am Post subject: |
|
|
Could you post your ~/.config/menus/applications.menu? Or email it to shux_linux [at] comcast.net . |
|
Back to top |
|
|
r0dzilla n00b
Joined: 06 Feb 2003 Posts: 70 Location: South Carolina, USA
|
Posted: Mon Sep 05, 2005 6:03 pm Post subject: |
|
|
Great program, I am taking a little break from gnome (cause my 2.10 is b0rked at the moment) and I'm using openbox right now. I always use openbox as my wm instead of metacity but I never had to mess with the openbox menus.
I tried to make a menu by hand (I have some prior experience) and I even downloaded someone else's menu.xml file but openbox wouldn't load it.
So I emerged your program, clicked Update, SysUpdate, Generate, Openbox, then saved it and it worked the first time.
And it works in gnome to, so I'll be using it there when I go back to it.
Thanks again, it saved me some work to get my menu up and running. |
|
Back to top |
|
|
GeYe n00b
Joined: 23 Sep 2004 Posts: 32 Location: Germany
|
Posted: Thu Sep 08, 2005 12:25 pm Post subject: |
|
|
I have also problems with Gnome 2.10 and Denu. I used the "AutoFill"-Feature, but then all gnome-symbols were gone (same problem as djh-world have).
Use use Gnome with German Language. |
|
Back to top |
|
|
wolfbite_aus Tux's lil' helper
Joined: 19 Jan 2005 Posts: 110
|
Posted: Tue Oct 18, 2005 1:54 pm Post subject: |
|
|
How about cutting out the middle man and just make a popup that can use your settings.
we could just add a link to the desktop and 'whola' menu is compatable nomater what desktop is being run
CROSS DESKTOP MENU SYSTEM
That way we only have ONE menu system to play with thats cross compatable
(did some basic Xdialog ones, but would like an easier to use one. |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Sat Nov 05, 2005 10:31 pm Post subject: |
|
|
Is this still being updated?
As far as pulling icons, why not pull the official gentoo icon set?
http://www.gentoo.org/dyn/icons.xml
There have been many icons made by users to go with this set, and I'm going to try and contact a Gentoo dev to get the "official" tarball updated. _________________ Nihilism makes me smile. |
|
Back to top |
|
|
TanNewt Retired Dev
Joined: 26 Mar 2004 Posts: 340 Location: Seattle, WA
|
Posted: Fri Dec 02, 2005 1:54 am Post subject: Back. |
|
|
Well I have not touched it in 3 or 4 months but I plan on working on it, say within the next month. There are a few features I need to add to 3.x still and I also need to change the method with which the info is stored. Note: This does not include writing import/export modules for WM/DEs. |
|
Back to top |
|
|
ColdWind Retired Dev
Joined: 08 Dec 2005 Posts: 119 Location: Valencia, Spain
|
Posted: Sat Dec 10, 2005 12:05 am Post subject: |
|
|
FVWM support would be great. It shouldn't touch .fvwm2rc (and it would be hard) but it could create a file with the menu ready to being pasted to .fvwm2rc. |
|
Back to top |
|
|
|