rodlie / qtfm

Qt File Manager
https://qtfm.eu
GNU General Public License v2.0
156 stars 43 forks source link

Omit empty strings from desktop file categories and mimetypes #171

Closed TangoAlpha closed 3 years ago

TangoAlpha commented 3 years ago

Reading "mimetype" and "categories" entries from a .desktop file that end in a trailing ';' causes an empty string to be added to the mimetype/categories qstringlist. For mimetypes, this causes an invalid mime file to be written as the empty string is used as the lefthand side of the default application entry...

[Default Applications] =anydesk.desktop;<snip further desktopfiles> application/clarisworks=libreoffice-calc.desktop;libreoffice-draw.desktop;libreoffice-writer.desktop ...

rodlie commented 3 years ago

thanks