Problems at use | Problèmes à l'utilisation
V10lator, Saturday 27 October 2012 à 22:25
|
|
Subscription date : 21 October 2012
Messages : 39
|
- The version of Cairo-Dock ('cairo-dock -v' in a terminal): 3.1.0
- Your GNU/Linux distribution (Debian, Ubuntu, Fedora, etc.): Gentoo
- Or you using OpenGL or not: With OpenGL
- Your Window manager (Compiz, Metacity, Kwin, Openbox, etc.): Compiz
- Your Desktop Environment (Gnome, KDE, XFCE, etc.): XFCE
- How you got the bug and therefore the answer to the question 'How can the bug be reproduced': Install and use the menu.
- If it's a crash, you can launch Cairo-Dock from a terminal ('cairo-dock') and post the output: No crash.
- Any other details you think could be useful :
This seems to infect .desktop files which have OnlyShowIn=XFCE inside, like this:
[Desktop Entry]
Version=1.0
Name=Display
Name[de]=Anzeige
Comment=Configure screen settings and layout
Comment[de]=Stellen Sie Ihre Bildschirme und deren Anordnung ein
Exec=xfce4-display-settings
Icon=video-display
Terminal=false
Type=Application
Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;
StartupNotify=true
OnlyShowIn=XFCE;
X-XfcePluggable=true
X-XfceHelpPage=display
//EDIT: This may have something todo with the plugin picking gnome-applications.menu instead of xfce-applications.menu - I'm actually compiling it with a patch so we will see...
//EDIT²: No, still not visible (also the menu seems to parse the file wrong, it looks differently than the original xfce menu. Two Settings submenus, for example).
//EDIT³: It seems to cmpletely ignore the Layout section it the menu file, that's why it looks that different. But still no idea why it ignores xfce menu entries. |
fabounet, Sunday 28 October 2012 à 02:12
|
|
Subscription date : 30 November 2007
Messages : 17118
|
Hi,
that's true, it will look for a file named "applications.menu" first, then fallback on other names.
The rest of the work is made by libgnome-menu.
could you please post here a picture of the 2 menus you get ? and the content of the "*applications.menu" files (the ones in /etc/xdg/menus and in /home/fab/.config/menus) ? |
V10lator, Sunday 28 October 2012 à 12:37
|
|
matttbe, Friday 02 November 2012 à 23:01
|
|
Subscription date : 24 January 2009
Messages : 12573
|
fabounet : Hi,
that's true, it will look for a file named "applications.menu" first, then fallback on other names. That's why I patched it: http://pastie.org/5127000 Yes but how to know why one the dock has to choose? Note that I only have this file on my Gnome session: applications.menu (maybe the check of gnome-applications can be made at the end? But I'm not sure that it's the best idea... maybe it can be possible to add the possibility to change that with an option?
Or maybe there is another bug somewhere and this is why gnome-applications.menu is not up to dated. (or maybe a daemon is not running or something else).
Did you install both gnome-desktop and xfce-desktop?
PS: if someone has this bug too, he can also just rename this file: /etc/xdg/menus/gnome-applications.menu |
V10lator, Saturday 03 November 2012 à 09:33
|
|
matttbe, Saturday 03 November 2012 à 12:38
|
|
fabounet, Sunday 11 November 2012 à 03:01
|
|
Subscription date : 30 November 2007
Messages : 17118
|
"settings menu" have their own file (in ~/.config/menus/settings.menu and probably also in /etc/xdg/menus)
maybe this one also has a different prefix ? |
V10lator, Sunday 11 November 2012 à 09:16
|
|
SQP, Sunday 11 November 2012 à 09:51
|
|
Subscription date : 03 July 2010
Messages : 1081
|
I think a less desktop centric menu would be cool but have a full todo list. And writing a basic applet for your own needs is easy. Raising it to a quality good enough to get deployed is really another job. |
V10lator, Sunday 11 November 2012 à 10:00
|
|
Subscription date : 21 October 2012
Messages : 39
|
SQP : And writing a basic applet for your own needs is easy.
Not if you know nothing about C, the cairo-dock API, garcon nor GTK. |
SQP, Sunday 11 November 2012 à 10:07
|
|
Subscription date : 03 July 2010
Messages : 1081
|
I was saying that in a general way. One can write a small hack pretty fast, but it takes time to ensure the result will be the same for most peoples. So don't expect some garcon based applet until someone really have both time and will to do it.
I could have suggested you to try it in go, really easier than C, but the garcon API would still have to be binded from C to go to get used |
fabounet, Wednesday 14 November 2012 à 17:28
|
|
V10lator, Thursday 15 November 2012 à 12:34
|
|
Subscription date : 21 October 2012
Messages : 39
|
fabounet : using a lib or another won't change anything, since both should use the same freedesktop standard.
Let me correct this for you:
using a lib or another won't change anything, since both should use the same freedesktop standard.
fabounet : correct me if I'm wrong, but we now only miss the settings menu
Missing cause of ignored Layout section (Layout is defined as optional from freedesktop):
- "Programm ausführen ..." (start application)
- "Terminal"
- "Dateimanager" (file manager)
- "E-Mail-Programm"
- "Webbrowser"
- "Über XFCE" (about XFCE)
- "Abmelden" (log off)
Settings submenu is there 2 times.
[EDIT]Wine menu is completely different[/EDIT]
glx-dock:
xfce4-panel:
, and I'm quite sure it's the same kind of problem than for the applications.menu (wrong file used).
I told what files I have earlier. there is no file that could be used wrongly.
(PS: you can write applets in any language, but that's another story )
Do you really want the full Java JVM to run just for a panel applet (Java is the language I'm most experienced with atm) ? I don't. ^^ |
fabounet, Friday 16 November 2012 à 16:27
|
|
V10lator, Friday 16 November 2012 à 16:48
|
|
Subscription date : 21 October 2012
Messages : 39
|
fabounet : About the top five entries, are they not the recently started programs ?
I wonder if they are actually inside the .menu file, or if they are added to the menu by the XFCE applet.
That are not recently started programs, they are from the Layout section:
<Layout>
<Filename>xfce4-run.desktop</Filename>
<Separator/>
<Filename>exo-terminal-emulator.desktop</Filename>
<Filename>exo-file-manager.desktop</Filename>
<Filename>exo-mail-reader.desktop</Filename>
<Filename>exo-web-browser.desktop</Filename>
<Separator/>
<Menuname>Settings</Menuname>
<Separator/>
<Merge type="all"/>
<Separator/>
<Filename>xfce4-about.desktop</Filename>
<Filename>xfce4-session-logout.desktop</Filename>
</Layout>
Edit: after a quick search, libgnome-menu now is in version 3, which seems to add Layout support.
also, libmenu-cache is another lib that implement the freedesktop standard, as well as libgarcon of course.
So we now have choice to port the applet :)
Well, I will be fine with whatever shows me a nice menu. Also note the wine entries, having all of them simply in "Sonstiges" (other) is just a mess. |
matttbe, Sunday 18 November 2012 à 02:39
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Is it possible to test the latest revision available on BZR?
xfce-settings-manager.menu file should be read now
(I guess it will be better when the applet will be ported to GMenu3!) |
V10lator, Sunday 18 November 2012 à 07:00
|
|
Subscription date : 21 October 2012
Messages : 39
|
matttbe : xfce-settings-manager.menu file should be read now ;)
I told you before that I don't think this is the right file and now I know it isn't. It is used by xfce4s settings manager, not for the menu. |
matttbe, Sunday 18 November 2012 à 11:00
|
|
Subscription date : 24 January 2009
Messages : 12573
|
ok. So the only solution is to port this applet to GMenu 3... |
Problems at use | Problèmes à l'utilisation
|