Could not determine mime type of file

Bug #792118 reported by Stephen Rees-Carter on 2011-06-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Diodon
Critical
Oliver Sauder

Bug Description

Diodon is refusing to start up, and is throwing the following error:

s.rees@ws-17hm42s:~$ diodon

** ERROR **: file-clipboard-item.vala:101: Could not determine mime type of file file://updatecchash.php
aborting...
Aborted
s.rees@ws-17hm42s:~$

I am running the latest version from the PPA: ppa:diodon-team/daily.

The full debug output is:

s.rees@ws-17hm42s:~$ diodon -d
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:89: Read storage file /home/s.rees/.local/share/diodon/storage.xml
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:106: Add item of type DiodonTextClipboardItem with value "index.php" to clipboard.
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:106: Add item of type DiodonTextClipboardItem with value "https://uber.status.net" to clipboard.
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:106: Add item of type DiodonTextClipboardItem with value "12" to clipboard.
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:106: Add item of type DiodonTextClipboardItem with value "Finally" to clipboard.
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:106: Add item of type DiodonTextClipboardItem with value "Yay, migrations/merges of WHMCS are going to be a lot easier." to clipboard.
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:106: Add item of type DiodonTextClipboardItem with value "
" to clipboard.
** (diodon:28111): DEBUG: xml-clipboard-storage.vala:106: Add item of type DiodonFileClipboardItem with value "updatecchash.php" to clipboard.

** ERROR **: file-clipboard-item.vala:101: Could not determine mime type of file file://updatecchash.php
aborting...
Aborted
s.rees@ws-17hm42s:~$

Related branches

Oliver Sauder (sao) wrote :

Thanks for reporting this bug.

I could reproduce the issue on my computer. It seems that a file in the diodon history is not available anymore and then causes diodon to start.

Such entries should actually be ignored during start up.

Changed in diodon:
importance: Undecided → Critical
status: New → Triaged
assignee: nobody → Oliver Sauder (sao)
milestone: none → 0.4.0
Oliver Sauder (sao) wrote :

Added check whether a file exists during startup and adding to history. Clipboard items which have a reference to a file, which does not exist anymore will not be added to the history and therefore this error should not occur anymore.

However when there is a file which exists but for whatever reason the mime type can not be figured out, it will log a warning and fallback to the mime type text/plain (which is then used to show the appropriate icon in the indicator or lens).

Should be soon available in the daily ppa.

Changed in diodon:
status: Triaged → Fix Committed
Stephen Rees-Carter (valorin) wrote :

Great, thank you :)
I will give it a go and let you know if i have any more issues.

Oliver Sauder (sao) on 2011-06-08
Changed in diodon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers