Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Application menu in Xfce.
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Application menu in Xfce.
Page : 1 2
Guest English 26 fabounet [Read]
22 October 2013 à 17:28

Guest, Tuesday 24 September 2013 à 16:17

Hello to everybody.
I'm using cairo-dock in Xfce4 vers 4.10 on archlinux (rolling release)
with xfwm.
In cairo dock I addett applications-menu applet and i notice that
there are missing some items for Xfce environment.
For example the item setting in te menu is empty, there's not
neither xfce-setting-manager.
If i edit /usr/share/applications/xfce-setting-manager.desktop
and I comment "OnlyShowIn=XFCE" with a # then the item appears!
Is there an option to full integrate applications-menu applet with xfce?
Or maybe can be a bug in the applet?
Best reguard and sorry for my english, i'm Italian.
mario

lylambda, Wednesday 25 September 2013 à 00:50


Subscription date : 06 September 2009
Messages : 1635
I confirm this bug as showed here : http://glx-dock.org/bg_topic.php?t=7179&pos=0#mess_80932

matttbe, Wednesday 25 September 2013 à 09:45


Subscription date : 24 January 2009
Messages : 12573
Hello and thank you for this bug report!

@Mario: is it possible to install the development version of Cairo-Dock (it's available in AUR: cairo-dock*-bzr )?

@Mario & lylambda: I think it should be fixed now (rev 2961)
Is it also possible to test this patch?
=== modified file 'GMenu/src/applet-tree.c'
--- GMenu/src/applet-tree.c    2013-09-25 07:22:57 +0000
+++ GMenu/src/applet-tree.c    2013-09-25 07:27:05 +0000
@@ -227,+227,@@
     
GDesktopAppInfo *pAppInfo gmenu_tree_entry_get_app_info (entry);
     
cd_menu_register_app (pAppInfo);
     
+    
gboolean a gmenu_tree_entry_get_is_excluded (entry), = ! g_app_info_should_show (G_APP_INFO (pAppInfo)), g_desktop_app_info_get_nodisplay (pAppInfo);
+    if (
|| || c)
+        
g_print ("=== %s %d %d %d\n"g_app_info_get_name (G_APP_INFO (pAppInfo)), abc);
     
// ignore entry that are not shown in the menu
     
if (gmenu_tree_entry_get_is_excluded (entry))
         return;

It will print all excluded apps.

PS: if it's not easy to add these 3 lines, I can temporary add this lines in BZR, just tell me

Guest, Wednesday 25 September 2013 à 15:04

....ehm... yes, if you can add the patch, we can be happy!

Guest, Wednesday 25 September 2013 à 15:06

Ops, I missed to sign the message above: thanks for all! Mario

matttbe, Wednesday 25 September 2013 à 16:42


Subscription date : 24 January 2009
Messages : 12573
You can now compile and test the latest rev

lylambda, Thursday 26 September 2013 à 01:43


Subscription date : 06 September 2009
Messages : 1635
Compile done ! I didn't see any change
Ok, it's too late… I will test again tomorrow

EDIT : so, no changes visible

matttbe, Thursday 26 September 2013 à 15:39


Subscription date : 24 January 2009
Messages : 12573
Can you launch the dock from a terminal and post here output messages here? You should see lines like that: "=== Application name 0 1 1"

lylambda, Thursday 26 September 2013 à 19:24


Subscription date : 06 September 2009
Messages : 1635
Done and I launched some application with the CD Menu:
cairo-dock -> pClassAppli->cStartupWMClass: (null)
_write_modules_idle (switcher;GMenu;logout;weather;Animated icons;WindowsKiller;Screensaver_inhibitor;Remote-Control;dustbin;netspeed;shortcuts;Notifications_history;Transmission;AlsaMixer;Calendar;System Monitor;Recent-Events;musicPlayer;dnd2share;showDesktop;Clipper;clock;stack;Note-Taking;wifi;PowerManager)
update_module_state (GMenu)
=== Privilege granting 0 1 0
=== Qt4 Config 0 1 1
=== Aide 0 1 0
=== Nemo 0 1 0
=== Notes 0 1 0
=== Ouvrir un dossier avec Thunar 0 1 1
=== Créer un lanceur sur le tableau de bord 0 1 1
=== Invite d'accès 0 1 1
=== Invite d'exécution automatique 0 1 1
=== LibreOffice XSLT based filters 0 1 1
=== View file 0 1 1
=== Aperçu avant impression 0 1 1
=== LibreOffice 0 1 1
=== Aperçu avant impression 0 1 1
=== Hugin PTO generator 0 1 1
=== ida 0 1 1
=== phraymd Photo Importer 0 1 1
=== phraymd Photo Viewer 0 1 1
=== Explorateur de serveur SSH Avahi 0 1 1
=== Explorateur de serveurs VNC Avahi 0 1 1
=== IcedTea Web Start 0 1 1
=== Réseau 0 1 1
=== Ouvrir un dossier avec Thunar 0 1 1
=== Sauvegarde 0 1 1
_detach_icon (cairo-dock)

(evince:1729): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:34:18: Not using units is deprecated. Assuming 'px'.
evince -> pClassAppli->cStartupWMClass: (null)
_detach_icon (Visionneur de documents)
Irrlicht Engine version 1.8.0
Linux 3.9.11-1-MANJARO-bbswitchfix #1 SMP PREEMPT Mon Aug 5 01:05:27 EST 2013 x86_64
[FileManager] Data files will be fetched from: '/usr/share/supertuxkart'
[FileManager] Addons files will be stored in '/home/lylambda/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
[IrrDriver] Trying OpenGL rendering.
Error messages and other text output will be logged to /home/lylambda/.config/supertuxkart/stdout.log and /home/lylambda/.config/supertuxkart/stderr.log
VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
[0x175d108] main libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface.
vlc -> pClassAppli->cStartupWMClass: (null)
_detach_icon (Lecteur multimédia VLC)

matttbe, Friday 27 September 2013 à 10:05


Subscription date : 24 January 2009
Messages : 12573
Thank you

And can you confirm that all missing apps are not in this list?
=== Privilege granting 0 1 0
=== Qt4 Config 0 1 1
=== Aide 0 1 0
=== Nemo 0 1 0
=== Notes 0 1 0
=== Ouvrir un dossier avec Thunar 0 1 1
=== Créer un lanceur sur le tableau de bord 0 1 1
=== Invite d'accès 0 1 1
=== Invite d'exécution automatique 0 1 1
=== LibreOffice XSLT based filters 0 1 1
=== View file 0 1 1
=== Aperçu avant impression 0 1 1
=== LibreOffice 0 1 1
=== Aperçu avant impression 0 1 1
=== Hugin PTO generator 0 1 1
=== ida 0 1 1
=== phraymd Photo Importer 0 1 1
=== phraymd Photo Viewer 0 1 1
=== Explorateur de serveur SSH Avahi 0 1 1
=== Explorateur de serveurs VNC Avahi 0 1 1
=== IcedTea Web Start 0 1 1
=== Réseau 0 1 1
=== Ouvrir un dossier avec Thunar 0 1 1
=== Sauvegarde 0 1 1
This list seems correct and then I guess this problem is due to that:
fabounet :
because XFCE uses <Layout> tags, and libgnomemenu doesn't handle them

specifications :
<Layout>

The <Layout> element is an optional part of this specification. Implementations that do not support the <Layout> element should preserve any <Layout> elements and their contents as far as possible. Each <Menu> may optionally contain a <Layout> element. If multiple elements appear then only the last such element is relevant. The purpose of this element is to offer suggestions for the presentation of the menu. If a menu does not contain a <Layout> element or if it contains an empty <Layout> element then the default layout should be used. The <Layout> element may contain <Filename>, <Menuname>, <Separator> and <Merge> elements. The <Layout> element defines a suggested layout for the menu starting from top to bottom. References to desktop entries that are not contained in this menu as defined by the <Include> and <Exclude> elements should be ignored. References to sub-menus that are not directly contained in this menu as defined by the <Menu> elements should be ignored.

lylambda, Friday 27 September 2013 à 13:49


Subscription date : 06 September 2009
Messages : 1635
And can you confirm that all missing apps are not in this list?
It's seem not.

So it's because the Layaout specification… well it's okay, I can use an xfce menu than Whisker.

fabounet, Friday 27 September 2013 à 15:26


Subscription date : 30 November 2007
Messages : 17118
@Matttbe: about your debug: should_show = NoDisplay + OnlyShowIn

now, I'm not sure we should rely on OnlyShowIn, because typically in a Cairo-Dock session, the desktop environment is irrelevant.

matttbe, Sunday 29 September 2013 à 00:06


Subscription date : 24 January 2009
Messages : 12573
now, I'm not sure we should rely on OnlyShowIn, because typically in a Cairo-Dock session, the desktop environment is irrelevant.
The desktop environment is GNOME, so it's relevant
I check applications which are not added in the menu and it seems that it's correct.

fabounet, Tuesday 01 October 2013 à 15:08


Subscription date : 30 November 2007
Messages : 17118
you're right, since we base it on gnome session manager...
ok so I think we can use this function

Guest, Monday 07 October 2013 à 20:39

Indeed. I think so. Infact if comment OnlyShowIn=XFCE the menu entries appear.
mario.

fabounet, Thursday 10 October 2013 à 17:01


Subscription date : 30 November 2007
Messages : 17118
@Guest: so, if you comment the line OnlyShowIn=XFCE, the entries appear, otherwise they don't ?
what give this command in a terminal:
echo $XDG_CURRENT_DESKTOP


it should be "XFCE" if you're using an XFCE session (are you ?)
if not, try this:
export XDG_CURRENT_DESKTOP=XFCE && cairo-dock


now, I think your entries with the line OnlyShowIn=XFCE should appear

@Lylambda:
so that fixes my previous problem, where my "Parameters" sub-menu was almost empty
I thought that it was because of the Layout tags, but it's actually because of XDG_CURRENT_DESKTOP not being defined in my environment

@Matttbe: to avoid this case, we should maybe not take into account the OnlyShowIn key if XDG_CURRENT_DESKTOP is NULL

matttbe, Friday 11 October 2013 à 23:54


Subscription date : 24 January 2009
Messages : 12573
@Matttbe: to avoid this case, we should maybe not take into account the OnlyShowIn key if XDG_CURRENT_DESKTOP is NULL
Yes, it's a good idea!

EDIT: can you check if you still have this bug with the rev 2986?
@fabounet: now we use 'g_desktop_app_info_get_nodisplay' if XDG_CURRENT_DESKTOP is NULL.

fabounet, Monday 14 October 2013 à 18:14


Subscription date : 30 November 2007
Messages : 17118
testé, et en fait ça en change rien
en regardant de plus près, je pense que c'est carrément libgnomemenu qui ne liste pas ces éléments (on ne les voit pas dans la liste).

j'ai bien envie de remonter ça comme un bug dans libgnomemenu, car on utilise GMENU_TREE_FLAGS_INCLUDE_NODISPLAY | GMENU_TREE_FLAGS_INCLUDE_EXCLUDED en paramètre de gmenu_tree_new ...

Guest, Monday 21 October 2013 à 13:17

Hello to everybody!!! I'm mario. Sorry for the late.
YES!!!! it was XDG_CURRENT_DESKTOP env variable that was empty in my Arch!
If I use export XDG_CURRENT_DESKTOP=XFCE && cairo-dock
Now works all! thanks very much.

fabounet, Monday 21 October 2013 à 14:57


Subscription date : 30 November 2007
Messages : 17118
personaly, I use
XDG_CURRENT_DESKTOP=XFCE cairo-dock
or
export XDG_CURRENT_DESKTOP=XFCE && cairo-dock

thanks for confirming the solution, I'm going to write it in the wiki
if you have the opportunity to report this bug to the XFCE or Arch devs, that would be helpful !

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Application menu in Xfce.
Page : 1 2
Guest English 26 fabounet [Read]
22 October 2013 à 17:28


Glx-Dock / Cairo-Dock List of forums Applets | Applets Application menu in Xfce. Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.