! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Entry in menu not disappear
Status:
RESOLVED: INVALID

Comments

Description Olivier Duchateau 2010-12-27 18:39:36 CET
When I remove an entry in xfce-applications.menu (see diff below). It always appears in menu.

--- /usr/local/etc/xdg/menus/xfce-applications.menu	2010-12-27 15:43:13.000000000 +0100
+++ /home/olivier/.config/menus/xfce-applications.menu	2010-12-27 17:51:34.000000000 +0100
@@ -16,7 +16,6 @@
         <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>
Comment 1 Olivier Duchateau 2010-12-27 18:41:33 CET
Created attachment 3308 
menu: default and custom
Comment 2 Lionel Le Folgoc 2011-01-25 21:13:50 CET
As I understand it, you removed it from the layout only, but it is still matched by:
    <Include>
        <Category>X-Xfce-Toplevel</Category>
    </Include>

That's why it is still inserted somewhere. If you really want to hide it, you have to exclude this specific file.
Comment 3 rafa.vasco 2011-02-22 00:11:17 CET
I also believe this is a bug, i noticed it yesterday when trying to edit the menu.
Removing:  
    <Include>
        <Category>X-Xfce-Toplevel</Category>
    </Include>
is not a solution because all the entries like
        <Filename>exo-terminal-emulator.desktop</Filename>
        <Filename>exo-file-manager.desktop</Filename>
will not be shown.
Comment 4 Lionel Le Folgoc 2011-02-22 07:51:59 CET
From exo-mail-reader.desktop:
Categories=Network;X-XFCE;X-Xfce-Toplevel;
It's in several categories, so I think you have to exclude it from the top menu (so X-Xfce-Toplevel), and from each matched category (so Network, and probably Other).

(In reply to comment #3)
> I also believe this is a bug, i noticed it yesterday when trying to edit the
> menu.
> Removing:  
>     <Include>
>         <Category>X-Xfce-Toplevel</Category>
>     </Include>
> is not a solution because all the entries like
>         <Filename>exo-terminal-emulator.desktop</Filename>
>         <Filename>exo-file-manager.desktop</Filename>
> will not be shown.

You can still include them manually:
<Include>
  <Filename>exo-terminal-emulator.desktop</Filename>
  <Filename>exo-file-manager.desktop</Filename>
</Include>

Imho, there's no bug here.
Comment 5 rafa.vasco 2011-02-22 20:10:44 CET
Well i followed more or less what is in this page http://wiki.xfce.org/howto/customize-menu about customizing the menu and somewhat did what i wanted. Copied the .desktop files i wanted removed from the menu changed the .desktop files to remove the X-Xfce-Toplevel; from the Categories section and edited the menu like this:

diff -u /etc/xdg/menus/xfce-applications.menu ~/.config/menus/xfce-applications.menu
--- /etc/xdg/menus/xfce-applications.menu	2011-01-16 16:08:06.000000000 +0000
+++ /home/ndiaz/.config/menus/xfce-applications.menu	2011-02-22 02:02:55.519790975 +0000
@@ -12,19 +12,14 @@
     </Include>
 
     <Layout>
-        <Filename>xfrun4.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>xfhelp4.desktop</Filename>
-        <Filename>xfce4-about.desktop</Filename>
         <Filename>xfce4-session-logout.desktop</Filename>
     </Layout>
 
@@ -67,6 +62,7 @@
                 <Filename>exo-terminal-emulator.desktop</Filename>
                 <Filename>xfce4-about.desktop</Filename>
                 <Filename>xfrun4.desktop</Filename>
+		<Filename>xfhelp4.desktop</Filename>
             </Or>
         </Exclude>
     </Menu>
@@ -166,6 +162,14 @@
         <Include>
             <All/>
         </Include>
+        <Exclude>
+            <Or>
+                <Filename>exo-mail-reader.desktop</Filename>
+                <Filename>xfrun4.desktop</Filename>
+		<Filename>xfce4-about.desktop</Filename>
+		<Filename>xfhelp4.desktop</Filename>
+            </Or>
+        </Exclude>
     </Menu>
 
 </Menu>


I still think it is a little weird doing this this way, but at least i understand now why it is like that.
Comment 6 Nick Schermer editbugs 2011-06-19 15:17:32 CEST
You need to alter the desktop file to hide it (Hidden=TRUE).

Bug #7038

Reported by:
Olivier Duchateau
Reported on: 2010-12-27
Last modified on: 2011-06-19

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Attachments

menu: default and custom (286.29 KB, image/png)
2010-12-27 18:41 CET , Olivier Duchateau
no flags

Additional information