Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2013, 12:36 PM   #1
mjost
Member
mjost began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2013
Location: Munich
Device: Kobo Glo
Unhappy installing calibre 0.9.16 => "No MIM types found"

Hello,

installing calibre 0.9.16 (and also before 0.9.14) like described on http://calibre-ebook.com/download_linux somehow "confused" my Suse 12.2 installation.

I already started a German thread on this on Suse forum, when it first happened with 0.9.14. (Back then, I didn't knew, that it is caused by calibre installation)

https://forums.opensuse.org/deutsch-...en-werden.html

Last time, this somehow "healed" itself after some time; now with installing 0.9.16 I have the problem again.

Here is a summarized translation of my German post:
(Also the error messages are translated from German - so they may not be 100 % accurate, compared to the English original messages - sorry)

-------------------------------------------
When I log in on KDE I get two error dialogue boxes:
Quote:
Error - Plasma desktop environment
and
Quote:
Error - interface for command execution
Both contain the same text:
Quote:
The MIME types can not be found:
"inode / directory"
"inode / block device"
"inode / chardevice"
"inode / socket"
"inode / fifo"
"application / x-shellscript"
"application / x-executable"
"application / x-desktop"
In dolphin there are just placeholders instead of icons for the files, just as in the desktop folder.
Also in the applications are missing icons, e.g. the close button on FF tabs or the folder icons in TB
If you attempt to launch applications from the desktop folder, I get instead the "Open with" dialog.

and


In the K-menu icons are there and the application can be started. (phew)

The same thing happens with a different user account.
If I log in on the other hand, as root, everything is fine.
If I create a new user, it has the same problem.

--------------------------------------------------------------

Regards

Martin
mjost is offline   Reply With Quote
Old 01-26-2013, 11:01 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre's installer uses the standard xdg package to install mime types. If mimetypes are getting broken then you have a problem with xdg. Do a bit of googling to learn how to regnerate mimetypes databases for kde.

On my distro (Gentoo) it is

kbuildsycoca4 --noincremental

Last edited by kovidgoyal; 01-26-2013 at 11:28 PM.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-27-2013, 02:44 AM   #3
mjost
Member
mjost began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2013
Location: Munich
Device: Kobo Glo
Thumbs up

Hello kovidgoyal,

thanks for pointing me in the right direction. I got a working system back.
It seems I felt - sort of - victim of my own paranoia. (with some friendly support from the calibre installer).

Short story:
My root user has "umask 077" in the shell startup files.
Setting this to "umask 000", rerunning the installer, running "kbuildsycoca4 --noincremental", logging out and in again fixed it.

Moral of the story:
To me it looks as if the calibre installer should use explicit permission for the installed files, instead of (implicitly) relying on umask.

Here are the details:
Code:
:> kbuildsycoca4 --noincremental
  ...
  kbuildsycoca4(12056) KBuildServiceFactory::createEntry: Invalid Service :  "/usr/local/share/applications/calibre-ebook-viewer.desktop"
  kbuildsycoca4(12056)/kdecore (services) KServicePrivate::init: The desktop entry file  "/usr/local/share/applications/calibre-lrfviewer.desktop"  has Type= "Application"  but no Exec line

  kbuildsycoca4(12056) KBuildServiceFactory::createEntry: Invalid Service :  "/usr/local/share/applications/calibre-lrfviewer.desktop"
  kbuildsycoca4(12056)/kdecore (services) KServicePrivate::init: The desktop entry file  "/usr/local/share/applications/calibre-gui.desktop"  has Type= "Application"  but no Exec line

  kbuildsycoca4(12056) KBuildServiceFactory::createEntry: Invalid Service :  "/usr/local/share/applications/calibre-gui.desktop"
  kbuildsycoca4(12056) parseLayoutNode: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.
Ahhh...
Ok, looked at the file (as root) found no problem. Huh ?

Code:
  godot:> desktop-file-validate /usr/local/share/applications/calibre-ebook-viewer.desktop
  /usr/local/share/applications/calibre-ebook-viewer.desktop: error: while reading the file: Permission denied
Ahhhh [2]

Fixed the permissions (for all calibre files there); run kbuildsycoca4 again; logged out and in again -> Big disappointment; still not working.

Then I came up with the approach, described below "Short story".
mjost is offline   Reply With Quote
Old 01-27-2013, 03:30 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As I said, calibre does not install the desktop files itself, it uses xdg-desktop-menu to install them. Therefore, it has no control over file permissions. If you think xdg-desktop-menu should work differently feel free to file a bug report with your distro/freedesktop.org
kovidgoyal is offline   Reply With Quote
Reply

Tags
linux, mime types, suse


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing a "normal" Debian ARMEL Linux on the Kindle choff Kindle Developer's Corner 18 09-09-2014 02:42 AM
Problem "installing" "Kindle library extractor" dhdurgee Kindle Developer's Corner 7 11-24-2012 07:09 PM
I found references to "PRIME_EBOOKS" and "kindle-video-slate" on Amazon pages! nick541 Amazon Kindle 7 09-26-2011 02:56 PM
for academic-types: what is your "flow?" rvdparis Sony Reader 6 11-15-2009 11:39 AM
"Error 1316" When Installing Ebook Library Upgrade dsuden Sony Reader 1 08-01-2008 06:15 AM


All times are GMT -4. The time now is 11:49 PM.


MobileRead.com is a privately owned, operated and funded community.