FS#78307 - [discord0.0.26-1]Add a "MimeType" key to '/usr/share/applications/discord.desktop'
Attached to Project:
Community Packages
Opened by nessaj (nessaj) - Wednesday, 26 April 2023, 07:17 GMT
Last edited by Toolybird (Toolybird) - Friday, 28 April 2023, 05:47 GMT
Opened by nessaj (nessaj) - Wednesday, 26 April 2023, 07:17 GMT
Last edited by Toolybird (Toolybird) - Friday, 28 April 2023, 05:47 GMT
|
Details
Description:
When I created the user entry file '~/.local/share/applications/discord.desktop' with the same content as '/usr/share/applications/discord.desktop', did some modification and attempted to refresh the desktop database using 'update-desktop-database -v ~/.local/share/applications/', I got the message 'File "./discord.desktop" lacks MimeType key'. The modification did not work unsurprisingly. I then added a line 'MimeType=x-scheme-handler/discord' and the problem was solved. So should we add such line to '/usr/share/applications/discord.desktop' within the package too? Additional info: * package version(s) discord 0.0.26-1 * config and/or log files etc. /usr/share/applications/discord.desktop [Desktop Entry] Name=Discord StartupWMClass=discord Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone. GenericName=Internet Messenger Exec=/usr/bin/discord Icon=discord Type=Application Categories=Network;InstantMessaging; Path=/usr/bin * link to upstream bug report, if any Steps to reproduce: cp /usr/share/applications/discord.desktop ~/.local/share/applications/ # some modification update-desktop-database -v ~/.local/share/applications/ |
This task depends upon
Closed by Toolybird (Toolybird)
Friday, 28 April 2023, 05:47 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
Friday, 28 April 2023, 05:47 GMT
Reason for closing: Not a bug
Additional comments about closing: See comments
That's just a harmless warning. Try running it as a normal user (but without the dir arg) and you'll usually see a copious quantity of the same warning i.e.
$ update-desktop-database -v
Therefore I think you're mistaken about the cause of your issue. It probably depends on the Desktop Env but I just tried your example on an XFCE4 desktop and the modified .desktop took effect immediately without having to run `update-desktop-database' at all.
> So should we add such line to '/usr/share/applications/discord.desktop' within the package too?
No, because then we'd have to change hundreds of others just to get rid of a harmless warning...which simply won't happen.