-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Mon, Aug 25, 2025 at 12:05:41PM -0000, qubist wrote:
> Hi,
> 
> I am looking at the filenames in:
> 
> ~/.config/menus/applications-merged/*.menu
> 
> I notice some weird naming and strange "duplicates", e.g.
> 
> user-qubes-vm-directory_sys_dwhonix.menu (from 2025-05-17)
> user-qubes-vm-directory-sys-whonix.menu  (from 2024-01-09)

Interesting, the old file should be removed by the xdg-desktop-menu tool
when old entries were removed. Do you actually see duplicate entries in
the menu?

> I also see why dashes replaced with '_d' in newer "duplicates".

Characters used as delimiters are escaped in qube names. While in
practice it isn't strictly necessary in the current naming scheme (that
uses only prefixes for different entries types), it avoids ambiguity
when parsing the name from the end (for example a qube named
"vm-directory-something"), and allows safely introducing other
characters in the qube names (the change was made when allowing dots in
qube names - to avoid names like something.menu.menu).
Currently escaped characters are:
 - '_' - as '_u'
 - '-' - as '_d'
 - '.' - as '_p'

> Questions:
> 
> 1. Why duplicates?
> 2. Why the replacement?
> 3. Which script(s) handle that naming?

See qubes-desktop-linux-common repository, especially
qubesappmenus/__init__.py

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmisVfkACgkQ24/THMrX
1ywllQf/QYhfY351Ss/6FcSXrVs7hvuwSDiOyQ6p9hhbCJxiA/mlscbgoF4fVKwk
zicZKCA54tGXgRMVuuO+gGaAgvQBg6nRJMu/ATQyFvFecJNoQoY02OcjxgW0lNyq
FMEOVJN7s5SLlKp1hxVWFA7+T66ONnIojSPs+RINFzcdtb1EZD7t/Nr2SF33USHy
j/wcFIfIrfBqAEFFaWqqQiriKPzIe5+MyygUrtMwk0YKqNccweUK91UduijkRtCa
WdbWZoogylCCbSF0WkBhhcFYGgknyb41n2pHQEdMWaYXBEjM6yiz5EhkiZIJig9Y
y6Pmy9vtOaHAOOXynJocQR5aBe0wFw==
=L4ig
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/qubes-devel/aKxV-RIrHRrsb_QF%40mail-itl.

Reply via email to