The desktop specification requires desktop managers (like Cinnamon) to search 
the list of directories in `$XDG_DATA_DIRS` for desktop files and use the first 
found only to add to menus, two applications with the same name cannot show in 
any desktop spec compliant menu.  Geany installs to `/usr/local` by default 
which will not overwrite the standard LM install in `/usr` but the 
`$XDG_DATA_DIRS` should have `/usr/local/share` before `/usr/share` in the 
list, so it should be shown in the menu in, not the LM default.  Check with 
`echo $XDG_DATA_DIRS` and check that `geany.desktop` appears in 
`/usr/local/share/applications`.

But you need to tell Cinnamon to re-scan those directories after an 
installation.  The standard Geany install (and therefore the script) doesn't do 
that.  This is because each desktop has a different way of doing it and the 
Geany install is desktop agnostic.  But LM installs know about Cinnamon and 
will re-trigger it.  So likely what happened when you installed something else 
was that Cinnamon was triggered to rescan and it found the install in 
`/usr/local`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3852#issuecomment-2081304298
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3852/2081304...@github.com>

Reply via email to