Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Il menù di Cinnamon non trova i .desktop in /usr/local/share/applications/ ma è un problema di Cinnamon. #789

Closed
vitforlinux-gimp opened this issue Jul 16, 2024 · 11 comments

Comments

@vitforlinux-gimp
Copy link

Invece le trova in ~/.local/share/applications.
Forse bisogna segnalarlo a Cinnamon .

Non c'è un MeToo per i programmatori... ma se scoccio dimmelo.

Ciao!

@ivan-hc
Copy link
Owner

ivan-hc commented Jul 16, 2024

Ciao Vit, sto cercando su google se questo problema è correlato a Cinnamon e non ho trovato risultati.

Cosa dice l'output di echo $XDG_DATA_DIRS?

Questo è il mio

/usr/share/xfce4:/usr/local/share/:/usr/share/:/usr/share

non so perchè /usr/share sia ripetuto due volte, ma /usr/local/share è dove dovrebbe essere.

@ivan-hc
Copy link
Owner

ivan-hc commented Jul 16, 2024

Continueremo a parlare qui nel caso ci siano novità, ma non essendo un problema direttamente legato a AM, chiudo.

@ivan-hc ivan-hc closed this as completed Jul 16, 2024
@Samueru-sama
Copy link
Contributor

There is one way to fix this, but this is a last resort once the issue is reported to cinnamon and they said that they wont fix it.

if [ "$XDG_CURRENT_DESKTOP" = "X-Cinnamon" ] && [ ! -d /usr/local/share/applications ]; then
	$SUDOCOMMAND ln -s /usr/share/applications /usr/local/share
fi

@ivan-hc
Copy link
Owner

ivan-hc commented Jul 16, 2024

@Samueru-sama but this way you create a symlink of /usr/share/applications to /usr/local/share. What if someone want to install third party apps (using AM) and the user have no RW permissions in /usr/share (as already happens with immutable distros)?

@Samueru-sama
Copy link
Contributor

Samueru-sama commented Jul 16, 2024

@Samueru-sama but this way you create a symlink of /usr/share/applications to /usr/local/share. What if someone want to install third party apps (using AM) and the user have no RW permissions in /usr/share (as already happens with immutable distros)?

Are there immutable cinnamon distros?

If that's the case then there has to be a way for cinnamon to read the .desktop in /usr/local/share/applications.

The snipped I shared checks if the current DE is cinnamon and if there isn't already a /usr/local/share/applications directory. If your distro was inmutable you would have the directory already.

@vitforlinux-gimp
Copy link
Author

(ITALIAN)
Ho usato JGMENU su Cinnamon in Mint 22 Wilma beta, e la voce per avviare Chrome, c'è, ma nel menù di Cinnamon no. Credo che il problema sia nel menu di Cinnamon, che evidentemente non "cerca" file .desktop in /usr/local/share/applications/.

Fare collegamenti (link) ad altre cartelle non va bene, tanto varrebbe allora mettere i file .desktop in /usr/share/applications/ avendo megari cura di aggiungere AM nel nome(chrome-AM.desktop)... così da non guastarne altri quando si disinstalla.

È un errore di Cinnamon.
(ENGLISH-matic)
I used JGMENU on Cinnamon in Mint 22 Wilma beta, and the entry to launch Chrome is there, but not in the Cinnamon menu. I believe the problem is in Cinnamon's menu, which evidently doesn't "search" for .desktop files in /usr/local/share/applications/.

Making connections (links) to other folders is not good, so you might as well put the .desktop files in /usr/share/applications/ taking care to add AM in the name (chrome-AM.desktop)... so as not to damage them others when you uninstall.

Is a Cinnamon error.

@ivan-hc
Copy link
Owner

ivan-hc commented Jul 17, 2024

Penso che sia meglio segnalare questo errore al team di linux mint / cinnamon

https://github.com/linuxmint/cinnamon/issues

questi sono gli issue relativi alla ricerca per "usr/local/share/applications" (con virgolette, per avere il risultato preciso)

https://github.com/linuxmint/cinnamon/issues?q=%22usr%2Flocal%2Fshare%2Fapplications%22

@vitforlinux-gimp
Copy link
Author

Devo chiedere scusa, evidentemente gli sviluppatori di Cinnamon si sono accorti del difetto e lo hanno risolto.

I have to apologize, evidently the Cinnamon developers noticed the flaw and fixed it.

@ivan-hc
Copy link
Owner

ivan-hc commented Jul 17, 2024

Devo chiedere scusa, evidentemente gli sviluppatori di Cinnamon si sono accorti del difetto e lo hanno risolto.

I have to apologize, evidently the Cinnamon developers noticed the flaw and fixed it.

Non scusarti, è bene che ci teniamo informati.

PS: sempre e solo forza XFCE! xD

@vitforlinux-gimp
Copy link
Author

Forza svarioni che fanno pigliare lucciole per lanterne... anche il vecchio Cinnamon (e anche Budgie) di Debian 12 funzionano, e eppure ci vedo ancora.
Devo mangiare più gelato e usare meno distro diverse... così tengo la testa più fresca.

@ivan-hc
Copy link
Owner

ivan-hc commented Jul 17, 2024

Devo mangiare più gelato e usare meno distro diverse... così tengo la testa più fresca.

Hai ragione, questi non sono tempi adatti a un pinguino ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants