Bug 31847 - update-desktop-database throws an error on mime type "all/allfiles" in file /usr/share/applications/thunderbird-compose.desktop
Summary: update-desktop-database throws an error on mime type "all/allfiles" in file /...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Dimitrios Glentadakis
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-28 02:04 CEST by Ricard Alfe
Modified: 2023-05-19 17:58 CEST (History)
0 users

See Also:
Source RPM: thunderbird-compose-1.0-2.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Ricard Alfe 2023-04-28 02:04:52 CEST
Description of problem:
    MAGEIA 9 BETA 1
    
hello everyone; I was registering a program with the "update-desktop-database" command and it showed me the following error
"Error in file "/usr/share/applications/thunderbird-compose.desktop": "all/allfiles" is an invalid MIME type ("all" is an unregistered media type) " I have reviewed the file "cat /usr/share/applications/thunderbird-compose.desktop" and it has shown me

[Desktop Entry]
Version=1.0
Name=Thunderbird Compose
Icon=thunderbird
Exec=thunderbird-compose %F
Type=Application
Categories=Network;News;Email;X-Mageia-CrossDesktop;
MimeType=all/allfiles

I have not had appreciable errors with thunderbird so I give it as a minor error
sturmvogel 2023-05-01 18:45:00 CEST

Assignee: sysadmin-bugs => bugsquad
Version: unspecified => Cauldron
Product: Infrastructure => Mageia
Component: Others => RPM Packages

sturmvogel 2023-05-01 18:46:48 CEST

Source RPM: thunderbird 102.10.1 => thunderbird-compose-1.0-2.mga9.src.rpm

sturmvogel 2023-05-01 18:47:56 CEST

CC: sysadmin-bugs => (none)

Comment 1 Lewis Smith 2023-05-03 21:07:49 CEST
Thank you Ricard for the report.
Unsure whether the fault is an invalid mime type in (see comment 0):
 /usr/share/applications/thunderbird-compose.desktop
[bug with Thunderbird]
or
That this mime type is valid, bug with update-desktop-database.

I guess the first is more likely, so assigning this to ns80 who nurses Thunderbird.

Assignee: bugsquad => nicolas.salguero
Summary: command execution error update-desktop-database => update-desktop-database throws an error on mime type "all/allfiles" in file /usr/share/applications/thunderbird-compose.desktop
Source RPM: thunderbird-compose-1.0-2.mga9.src.rpm => desktop-file-utils-0.26-3.mga9.src.rpm, thunderbird-compose-1.0-2.mga9.src.rpm

Nicolas Salguero 2023-05-07 16:21:27 CEST

Source RPM: desktop-file-utils-0.26-3.mga9.src.rpm, thunderbird-compose-1.0-2.mga9.src.rpm => thunderbird-compose-1.0-2.mga9.src.rpm
Assignee: nicolas.salguero => dglent

Comment 2 Dimitrios Glentadakis 2023-05-10 07:12:31 CEST
The thunderbird-composer can be used to do a right click on a file and open with this application which opens the composer window of thunderbird and add the selected file(s) in attachments.
So, it matches all files.

The all/allfiles is a mime type used by desktops for all files (and all/all for files and folders) but it is not registered so it has to be changed

I will change to:

-MimeType=all/allfiles
+MimeType=application/octet-stream

a similar case:
https://invent.kde.org/network/kdeconnect-kde/-/commit/f1ce22124ce7dd630b8e909b4c50f90f035166d5

Thanks for report this
Comment 3 Dimitrios Glentadakis 2023-05-18 07:59:37 CEST
Version 1.1 in Cauldron updates_testing
Comment 4 Dimitrios Glentadakis 2023-05-19 06:29:58 CEST
Version 1.1 moved to Cauldron release repo
Ricard can you test ?
Comment 5 Ricard Alfe 2023-05-19 15:02:39 CEST
I have updated the system and now everything is correct.
Downloaded version thunderbird-compose-1.1-1.mga9.noarch.rpm
The problem can be closed.
Comment 6 Dimitrios Glentadakis 2023-05-19 17:58:33 CEST
(In reply to Ricard Alfe from comment #5)
> I have updated the system and now everything is correct.
> Downloaded version thunderbird-compose-1.1-1.mga9.noarch.rpm
> The problem can be closed.

ok thanks

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.