#893510 menu breaks when a desktop file has encoding problems

Package:
cinnamon
Source:
cinnamon
Description:
Innovative and comfortable desktop
Submitter:
Norbert Preining
Date:
2026-08-22 12:35:02 UTC
Severity:
important
Tags:
#893510#5
Date:
2018-03-19 14:21:58 UTC
From:
To:
Hi,

some changes in the Gnome world probably have broken Cinnamon's menu ..
at least I don't have *any* entry anymore in the start menu, see
attached screenshot.

Thanks

Norbert

#893510#10
Date:
2018-03-21 05:11:44 UTC
From:
To:
retitle 893510 menu breaks when a desktop file has encoding problems
thanks

The reason was a desktop file that had the *filename* encoding messed
up. Removing or renaming the file to proper encoding fixed the issue.

cinnamon-menu should not die on a wrongly encoded filename, but skip it.

Norbert

#893510#21
Date:
2026-08-17 21:16:08 UTC
From:
To:
Hello,

Bug #893510 in cinnamon-menus reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/cinnamon-team/cinnamon-menus/-/commit/06e1e67ae0428652d4d73945209baaa69418884d
------------------------------------------------------------------------
d/patches: Skip desktop files whose id is not valid UTF-8

The desktop file id handed out by gmenu_tree_entry_get_desktop_file_id()
is the entry's path relative to the application directory, so any byte
of the file or directory name that is not valid UTF-8 is passed through
as-is. Introspection bindings refuse to convert such a string, and since
the Cinnamon menu applet reads the id of every entry in appUtils.js
loadDirectory(), a single badly named file anywhere under an
applications directory makes cjs throw and the exception propagates out
of the applet constructor: the menu button disappears from the panel
entirely.

Add the patch forwarded as linuxmint/cinnamon-menus#85, which validates
the id before handing it to the callback and skips the entry when it is
not valid UTF-8, logging the offending path so it can be found and
renamed.

Closes: #893510

Assisted-by: Claude Code:claude-opus-5
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/893510

#893510#28
Date:
2026-08-22 12:33:53 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
cinnamon-menus, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 893510@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fabio Fantoni <fantonifabio@tiscali.it> (supplier of updated cinnamon-menus package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 22 Aug 2026 14:15:22 +0200
Source: cinnamon-menus
Built-For-Profiles: noudeb
Architecture: source
Version: 6.6.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Cinnamon Team <debian-cinnamon@lists.debian.org>
Changed-By: Fabio Fantoni <fantonifabio@tiscali.it>
Closes: 893510 1118800
Changes:
 cinnamon-menus (6.6.0-2) unstable; urgency=medium
 .
   [ Simon McVittie ]
   * d/control:
     - Add ${gir:Depends} to -dev package
     - Add ${gir:Provides} to -dev package
     - Add B-D on gir1.2-gio-2.0-dev
     - Replace deprecated B-D on libgirepository1.0-dev
     (Closes: #1118800)
 .
   [ Fabio Fantoni ]
   * d/patches: Skip desktop files whose id is not valid UTF-8
     (Closes: #893510)
   * d/not-installed: Drop the file, it only lists files that no longer exist
   * d/control:
     - Mark libcinnamon-menu-3-dev as Multi-Arch: same
     - Point Homepage at the upstream repository
     - Drop the redundant Priority field
     - Drop the redundant Rules-Requires-Root field
     - Bump Standards-Version to 4.7.4
     - Drop ${shlibs:Depends} from gir1.2-cmenu-3.0
   * Update d/copyright
Checksums-Sha1:
 ab578ddae3009d065f40d50fa5d292c068074c0c 2462 cinnamon-menus_6.6.0-2.dsc
 a8c364f6db8dc38900c8a1f785344991ab4c723d 86588 cinnamon-menus_6.6.0.orig.tar.gz
 4d05c4fd40c68b0ade5ae5d7ee3e7b4d4e2a0763 7324 cinnamon-menus_6.6.0-2.debian.tar.xz
 8b377ca4cd4917f5eb3946c261d500367efc2e65 9569 cinnamon-menus_6.6.0-2_source.buildinfo
Checksums-Sha256:
 0fab257e1b2c540955338ccf8feeb01a1f38c43a79860048c9b1a6b6f7369c99 2462 cinnamon-menus_6.6.0-2.dsc
 f75aa06d77154f1b8c57c234c1fdcaee1617e7e017c968fa19b86059513c16fe 86588 cinnamon-menus_6.6.0.orig.tar.gz
 06759dad8859c15ff705d6d1e797e5a06827eef9fafbb65ec4f97459e266f089 7324 cinnamon-menus_6.6.0-2.debian.tar.xz
 1189da8e4896c4edd781898e49c3c3cef6d8b76d0c8befb90f158e189bedd4a5 9569 cinnamon-menus_6.6.0-2_source.buildinfo
Files:
 c2d58ac25fc62b81656e74f6aa415e9d 2462 x11 - cinnamon-menus_6.6.0-2.dsc
 14a7c8800c225ffaa4c31e27b48feaf2 86588 x11 - cinnamon-menus_6.6.0.orig.tar.gz
 af5bd170ae49af714d2ebcbbd58c1771 7324 x11 - cinnamon-menus_6.6.0-2.debian.tar.xz
 0a0401e2ad8874058a5237490bd90482 9569 x11 - cinnamon-menus_6.6.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEELEHRfLe4S9D5+1GzaAZorpB/EB0FAmqJkyEACgkQaAZorpB/
EB2d4w/+MGpcAalxRlLSQtuAJoCWFVZyeGngpGKRL2vEh1LniedQugGVEz/DhfPD
B7TzyKWiJC/hZb0fc2ObRGRvYFFS53GAP30WtguoL1bMbZZm/i5Es1bf/fQ7HrBf
VxaHPlBXWjYbQ3RVTwdHEXAKT5vS2hF6mBJOC6WdZDlbG62bsSchw5W+yrqxrtCu
kpLLsG1jRNKV8A4Z/xtj0n2fF2EOOiTpJZNMrPe/U1stJebbI0e7doZ6FAuFBbNN
KA1RqJukaT1MesxL7KI8yT8NYIe7VGlbPK53FAeYALXEvzVHs8cnyOKVUS2/cnxp
JLSWLWMnefdUq+IU9vkDFNmKDmhJQMZrNNp3k+l9zMy7i01zOx5y9zH+cjRVXwbF
yrZzthCrxxjO/tC7sKgBkY92fSnrsrUhUD2hKs1IOYB/Y60k1KnA7t6NRD43CpEF
SwjFRtiRtKBTSenf/wnzrCv7pomXYEKX9+lli7Jn4452bnViQ0GIEdn7WBKsJMCB
BxgRCduCSl11jtAEN10yCtTZaGbkmFLn7hLnlRRzd87TZaiBQ1tMS1I3woaxmZQc
yAJ1obLJI5j68BbeEnRHjyi2e3ZJLXb/mUGSmyNvvN9BNUdwK3Hilbqdrej3yxae
M03yKLcpDkltt3ZVXh5ZL5gGlpcruM+RNxbe5YZZQP7FtaGYl/U=
=lF0t
-----END PGP SIGNATURE-----