Hello! I’ve been doing some digging through my menus files for some tweaking, and noticed this near the top of kf5-applications.menu. (at /etc/xdg/menus/)
Is this intentional? It looks like the comment has been ignored entirely.
If you look further “out” in the tags there, it looks like it’s a section to describe a particular menu category called “Applications”, and that sub-section is all wrapped in “Not” tags…so I’m thinking that’s a comment to describe the intent of the code (e.g. “Don’t put YaST in the ‘Applications’ menu”), followed by the line to actually put that into effect?
(Just a guess, that code apparently predates the history available on the invent.kde.org site!)
<Menu>
<Name>Applications</Name>
<Directory>kde-unknown.directory</Directory>
<OnlyUnallocated/>
<Include>
<Not>
<!-- Don't list non-KDE core applications -->
<And>
<Category>Core</Category>
<Not><Category>KDE</Category></Not>
</And>
<!-- Don't list SUSE's YaST in here -->
<Category>X-SuSE-YaST</Category>
<Category>X-KDE-settings-hardware</Category>
<Category>X-KDE-settings-accessibility</Category>
<Category>X-KDE-settings-components</Category>
<Category>X-KDE-settings-desktop</Category>
<Category>X-KDE-settings-looknfeel</Category>
<Category>X-KDE-settings-network</Category>
<Category>X-KDE-settings-webbrowsing</Category>
<Category>X-KDE-settings-peripherals</Category>
<Category>X-KDE-settings-hardware</Category>
<Category>X-KDE-settings-power</Category>
<Category>X-KDE-settings-security</Category>
<Category>X-KDE-settings-sound</Category>
<Category>X-KDE-settings-system</Category>
<Category>X-KDE-information</Category>
<Filename>kde-kcm_knetworkconfmodule_ss.desktop</Filename>
<Filename>kde-medianotifications.desktop</Filename>
<Filename>kde-audioencoding.desktop</Filename>
</Not>
</Include>
</Menu>
That’s definitely what this section does, but I’m not sure that’s what the comment means. I interpret these comments as instructions, not descriptions of the section’s function, because the only comment below this is an instruction specifying which files to include in the Science directory.
<Menu>
<Name>Science</Name>
<Directory>kf5-science.directory</Directory>
<Include>
<And><!-- Include /any/ Science app which is not an Education app -->
<Or>
<Category>Astronomy</Category>
<Category>Biology</Category>
<Category>Chemistry</Category>
<Category>Geology</Category>
<Category>MedicalSoftware</Category>
<Category>Physics</Category>
<Category>Math</Category>
<Category>Science</Category>
</Or>
<Not><Category>Education</Category></Not>
</And>
</Include>
</Menu>