BetterDiscord / Installer

A simple standalone program which automates the installation, removal and maintenance of BetterDiscord.
https://betterdiscord.app
MIT License
1.77k stars 188 forks source link

Wrong .desktop location on linux #288

Closed Soggy-Pancake closed 2 years ago

Soggy-Pancake commented 2 years ago

Betterdiscord changed the .desktop file to /usr/share/discord/Discord while discord was installed in /opt/discord

Run installer Install normally

Expected: Desktop/start menu links work

image

image

Inve1951 commented 2 years ago

The BD installer does not mess with discord's desktop integration. What makes you think BD caused this?

Soggy-Pancake commented 2 years ago

The desktop shortcut worked before installing betterdiscord. The .desktop shortcut that was messed with was /opt/discord/discord.desktop

QbDesu commented 2 years ago

That doesn't change the fact that the installer doesn't touch these things. It doesn't even touch the stuff in /opt/ or /usr/share but only patches a single file in the ~/.config/discord and installs its own files in ~/.config/BetterDiscord. It doesn't create any .desktop files, it doesn't modify any .desktop files. Not to mention that a desktop file in /opt/discord wouldn't even be considered by any application unless its symlinked to /usr/share/applications or another appropriate path.

What is more likely is that Manjaro didn't update the desktop file when the discord package changed its installation directory.

Inve1951 commented 2 years ago

Note that the installer (by default) runs without root privileges so it in fact cannot change files in /opt or /usr.