Thread
:
[UPDATED] cbrPager for Maemo update
View Single Post
pipeline
2009-02-25 , 01:55
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#
27
I'm not sure if bge is still following this thread, but I discovered a weird issue (not really cbrpager's fault).
This issue only applies with dbus-switchboard and is some bad 'magic'
cbrpager does not add mime type for cbr files... -but- the unrar package -does- for rar files and it uses something called magic for detecting if files are rar files. For some reason this magic pattern is bypassing the 'last-chance' mime type application/octet-steam from being the handler selected... so it asks you what you want to do with the file when you try to click on cbr from file manager (with dbus-switchboard installed).
Some workarounds :
One solution would be to add official mime package, similar to unrar (see usr/share/mime/packages/unrar.xml) except use glob patterns of .cbr. Perhaps this would establish 'real' mime type to associate with.
Another solution for individuals would be to delete that /usr/share/mime/packages/unrar.xml file and then run (as root) update-mime-database /usr/share/mime This would probably disable file manager integration for rar files so only do this if you installed rar just for cbrpager.
You might also be able to edit the file above and just remove the magic-priority section where it detects bytes 'rar!'
Does anyone know if the author of unrar uses this forum (and who he is?)... maybe there is a good reason why file extension is not enough and he has to include that pattern detection... if not maybe i could get him to fix his mime package.
Last edited by pipeline; 2009-02-25 at
01:58
.
Quote & Reply
|
pipeline
View Public Profile
Send a private message to pipeline
Find all posts by pipeline