Debian Patches

Status for cinnamon-menus/6.6.0-2

Patch Description Author Forwarded Bugs Origin Last update
entry-directories-skip-entries-whose-desktop-file-id-is-n.patch entry-directories: skip entries whose desktop file id is not valid UTF-8

The desktop file id is the entry's path relative to the application
directory, with the separators turned into dashes, so any byte of the
file or directory name that is not valid UTF-8 is handed out as-is by
gmenu_tree_entry_get_desktop_file_id().

Introspection bindings refuse to convert such a string. In Cinnamon the
menu applet reads the id for every entry in appUtils.js loadDirectory(),
so a single badly named file anywhere under an applications directory
makes cjs throw "String from C value is invalid UTF-8 and cannot be
safely stored", the exception propagates out of the applet constructor,
and the applet is never created: the menu button disappears from the
panel entirely. Reported as https://bugs.debian.org/893510 in 2018 and
again as linuxmint/cinnamon-menus#64 in 2023.

Validate the id before handing it to the callback and skip the entry
when it is not valid UTF-8, logging the offending path so it can be
found and renamed. Doing it here rather than at load time also covers
the case where the file name is fine but one of the directories leading
to it is not.
Fabio Fantoni <fantonifabio@tiscali.it> yes debian 2026-08-17

All known versions for source package 'cinnamon-menus'

Links