No icons & mime-types wont update
So after mainly restoring my borked system im left with 1 problem, i have no icons. Trying to run thunar gives this
Thunar-ERROR **: Failed to load fallback icon from "/usr/share/pixmaps/Thunar/Thunar-fallback-icon.png" (Unrecognised image file format). Check your installation!
aborting...
installing pcmanfm gives this
update-mime-database: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
Ive tried removing libxml and libz to no avail
So after mainly restoring my borked system im left with 1 problem, i have no icons. Trying to run thunar gives this
Thunar-ERROR **: Failed to load fallback icon from "/usr/share/pixmaps/Thunar/Thunar-fallback-icon.png" (Unrecognised image file format). Check your installation!
aborting...
installing pcmanfm gives this
update-mime-database: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
Ive tried removing libxml and libz to no avail
Similar Messages
-
Hi,
i'm curious to know if i'm the only that have ugly mime-type icons for LibreOffice files (.odt .doc .ods ...)
Before
I like to see the original LibreOffice mime-type icons, so after a lot of research on the web i've found the solution.
Following this http://standards.freedesktop.org/shared … atest.html
The applications mime-type action are stored under /usr/share/mime/packages.
Here you can find /usr/share/mime/packages/libreoffice.xml the LibreOffice mime-type file and if you open it you'll find something like that:
<mime-type type="application/vnd.oasis.opendocument.text">
<comment>OpenDocument Text</comment>
<glob pattern="*.odt"/>
<magic>
<match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
</magic>
</mime-type>
In order to see the original icon in Nautilus / Dolphin you simply have to add a line of code that call the proper mime-type icon for example:
<icon name="libreoffice-oasis-text"/>
You have to do this for every mime-type type.
The follow example is for "OpenDocument Text"
<mime-type type="application/vnd.oasis.opendocument.text">
<comment>OpenDocument Text</comment>
<glob pattern="*.odt"/>
<icon name="libreoffice-oasis-text"/>
<magic>
<match type="string" offset="38" value="application/vnd.oasis.opendocument.text"/>
</magic>
</mime-type>
And after this work you can see something like this in Nautilus / Dolphin
After
If someone if interested i can post the updated libreoffice.xml file.
mod edit: Hello gspe, please read Forum Etiquette: Pasting Pictures and Code. Thanks. --fsckd
Last edited by fsckd (2011-11-07 20:05:21)After a bit more research i've found the correct solution for the problem.
The problem actually is that the libreoffice mime-type icons follow a wrong naming.
For example if you go in /usr/share/icons/gnome/48x48/mimetypes
libreoffice-oasis-text.png
shoud be
application-vnd.oasis.opendocument.text.png
And so on for all entry in /usr/share/mime/packages/libreoffice.xml -
Hi all,
I use a custom developed iView for viewing a list of KM documents.
I now need to add an icon next to each document according to its mime-type.
I want to use the table in System Administration -> System Configuration -> Knowledge Management -> Content Management -> Utilities -> Icons.
Since I couldn't find a way to access it, I "copied" it to my code:
private String getIconPath(IResource r){
String filename = "unknown.gif";
try{
String mimeType = r.getContent().getContentType();
if (mimeType.equalsIgnoreCase("application/msword")){
filename = "document.gif";
else if (mimeType.equalsIgnoreCase("application/pdf")){
filename = "pdf.gif";
else if (mimeType.equalsIgnoreCase("application/vnd.ms-excel")){
filename = "spreadsheet.gif";
else if (mimeType.equalsIgnoreCase("application/vnd.ms-powerpoint")){
filename = "presentation.gif";
else if (mimeType.equalsIgnoreCase("application/vnd.visio")){
filename = "vectorgraphics.gif";
else if (mimeType.equalsIgnoreCase("application/vnd.wcm-folder")){
filename = "standard_folder.gif";
else if (mimeType.equalsIgnoreCase("application/vnd.wcm-weblink")){
filename = "html_link.gif";
else if (mimeType.equalsIgnoreCase("audio/basic")){
filename = "audio.gif";
else if (mimeType.equalsIgnoreCase("audio/midi")){
filename = "audio.gif";
else if (mimeType.equalsIgnoreCase("audio/mpeg")){
filename = "audio.gif";
else if (mimeType.equalsIgnoreCase("audio/x_mpeg")){
filename = "audio.gif";
else if (mimeType.equalsIgnoreCase("image/")){
filename = "image.gif";
else if (mimeType.equalsIgnoreCase("link.application/msword")){
filename = "document_link.gif";
else if (mimeType.equalsIgnoreCase("link.application/octet-stream")){
filename = "unknown_link.gif";
else if (mimeType.equalsIgnoreCase("link.application/pdf")){
filename = "pdf_link.gif";
else if (mimeType.equalsIgnoreCase("link.application/vnd.ms-excel")){
filename = "spreadsheet_link.gif";
else if (mimeType.equalsIgnoreCase("link.application/vnd.ms-powerpoint")){
filename = "presentation_link.gif";
else if (mimeType.equalsIgnoreCase("link.application/vnd.visio")){
filename = "vectorgraphics_link.gif";
else if (mimeType.equalsIgnoreCase("link.application/vnd.wcm-folder")){
filename = "standard_folder_link.gif";
else if (mimeType.equalsIgnoreCase("link.audio/basic")){
filename = "audio_link.gif";
else if (mimeType.equalsIgnoreCase("link.audio/midi")){
filename = "audio_link.gif";
else if (mimeType.equalsIgnoreCase("link.audio/mpeg")){
filename = "audio_link.gif";
else if (mimeType.equalsIgnoreCase("link.audio/x_mpeg")){
filename = "audio_link.gif";
else if (mimeType.equalsIgnoreCase("link.default")){
filename = "unknown_link.gif";
else if (mimeType.equalsIgnoreCase("link.image/")){
filename = "image_link.gif";
else if (mimeType.equalsIgnoreCase("link.text/html")){
filename = "html_link.gif";
else if (mimeType.equalsIgnoreCase("link.text/plain")){
filename = "plaintext_link.gif";
else if (mimeType.equalsIgnoreCase("link.text/xml")){
filename = "xml_link.gif";
else if (mimeType.equalsIgnoreCase("link.video/vdo")){
filename = "video_link.gif";
else if (mimeType.equalsIgnoreCase("sap-crt/state-error")){
filename = "s_s_ledr.gif";
else if (mimeType.equalsIgnoreCase("sap-crt/state-not-init")){
filename = "s_s_ledi.gif";
else if (mimeType.equalsIgnoreCase("sap-crt/state-ok")){
filename = "s_s_ledg.gif";
else if (mimeType.equalsIgnoreCase("sap-crt/state-warn")){
filename = "s_s_ledy.gif";
else if (mimeType.equalsIgnoreCase("text/html")){
filename = "html.gif";
else if (mimeType.equalsIgnoreCase("text/plain")){
filename = "plaintext.gif";
else if (mimeType.equalsIgnoreCase("text/xml")){
filename = "xml.gif";
else if (mimeType.equalsIgnoreCase("video/vdo")){
filename = "video.gif";
} catch (Exception e){
e.printStackTrace();
try {
IURLGeneratorService urlgen = (IURLGeneratorService)ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
return urlgen.getImageUri(filename).toString();
} catch (Exception e) {
e.printStackTrace();
return "";
Is there a way to access that table and avoid this (ugly) duplication?
Thanks ahead,
Yoav.Hi,
try using the mimeHandler service for getting the SRC of image for a resource in KM:
IMimeHandlerService mh = (IMimeHandlerService)
ResourceFactory.
getInstance().
getServiceFactory().
getService("MimeHandlerService");
String imagePath = mh.get(res).getImagePath();
where 'res' is IResource object of the resource in KM.
Hope this helps.
Romano -
XDG standards updated re MIME-type associations + default applications
In April the XDG standards regarding Association between MIME types and applications was updated, and the changes are quite significant. For example, to specify default applications you should now list them in the [Default Applications] section of a mimeapps.list; placing them in the [Added Associations] section is no longer sufficient. Also, mimeapps.list files may now also be located in the $HOME/config ($XDG_CONFIG_HOME) and /etc/xdg ($XDG_CONFIG_DIRS) directories. The file defaults.list is confirmed as deprecated, as well as a mimeapps.list file in $HOME/.local/share/applications ($XDG_DATA_HOME/applications).
Just to muddy the waters further, there are $desktop-mimeapps.list ($desktop is the desktop environment: kde, gnome, etc) which may accompany mimeapps.list files on all the paths!
I'm implementing these new standards in my ayr launcher, but no doubt there will be many applications which will lag behind these new standards. The biggest immediate problem will probably be with file managers which often write the default associations they create to the [Added Associations] section in $HOME/.local/share/applications/mimeapps.list.
This will not be much fun, but if it's standardising better, then so be it!
Edit: There is a worked example, but there seems to be a mistake in this - $XDG_CONFIG_DIRS should come before $XDG_DATA_HOME according to the standard.
Also, the Default applications page on the Wiki is going to need a substantial revamp.
Edit2: Overview of main changes
Last edited by ninian (2014-06-18 23:27:39)Have now updated the Wiki section on:
Using MIME types and desktop entries
to reflect the new changes. -
Mime Types Gone After System Update
Nautilus and PCmanfm can not recognise any file type. Everything is an executable and text file. Evince can not open any file after update.
/etc/mime.types was sliced down to a single line: application/x-java-jnlp-file jnlp
I recovered the file by installing the package mime.types but without success.The file is OK now, but even after restart the problem remains. This way Gnome is not really useful anymore. KDE works fine as long as KDE apps are used.qweac wrote:
I've never used pkgbuild before, so I can't make it work. I went to the adress "secretfox" posted and downloaded the thing. It gave me a file called PKGBUILD on my desktop. When I run makepkg I get this:
==> ERROR: Install scriptlet (shared-mime-info.install) does not exist.
Anyone who can help a newbie out?
Edit: I found a fix that worked in the bugreport mentioned earlier in this thread.
Well! Download file PKGBUILD (http://repos.archlinux.org/viewvc.cgi/s … ision=3446) and shared-mime-info.install (http://repos.archlinux.org/viewvc.cgi/s … revision=1) and put them together in an empty directory.
Edit file PKGBUILD, change line "pkgver=0.40" to "pkgver=0.23" and save file.
Run "makepkg -g" from the same directory, it will download source package and show the md5 line (something like "md5sums=('xxxxxxxxxxxx.....')").
Substitute the md5 line in PKGBUILD with the previous shown by makepkg.
Now run "makepkg" command in the same directory and wait package creation.
If compilation will be ok you'll obtain a file named "shared-mime-info-0.23-1-i686.pkg.tar.gz".
Run command "pacman -U shared-mime-info-0.23-1-i686.pkg.tar.gz" as root.
Check if mime type is ok now. It would be!
I hope it's useful. Bye -
Since the last update of evince to 0.83 it won't open pdf files no more - I get:
Unable to open document
Unhandled MIME type: "application/pdf"
Is this a bug?
I can open pdfs using kpdf or kghostview without a problem.This one seems to be back, newest version.
$ pacman -Qi evince
Name : evince
Version : 2.22.2-2
URL : http://www.gnome.org
Lizenzen : GPL
Gruppen : gnome-extra
Stellt bereit : Nichts
Hängt ab von : libspectre>=0.2.0 gsfonts poppler-glib>=0.8.3
libdjvu>=3.5.20 gnome-icon-theme>=2.22.0 t1lib
libglade>=2.6.2 gnome-keyring>=2.22.2
shared-mime-info
Optionale Abhängigkeiten: Nichts
Benötigt von : Nichts
Konflikt mit : Nichts
Ersetzt : Nichts
Installationsgröße : 4696,39 K
Packer : Unknown Packager
Architektur : i686
Erstellt am : So 08 Jun 2008 16:19:28 CEST
Installiert am : So 29 Jun 2008 19:09:16 CEST
Installationsgrund : Ausdrücklich installiert
Installations-Skript : Ja
Beschreibung : Simply a document viewer
EDIT: Rolling your own as suggested by phorgan1 worked, again.
Last edited by Captain Spaulding (2008-06-29 17:17:03) -
Trouble shooting- MIME type "application/x-shockwave-flash"
I am experincing a problem with watching youtube videos. This problem is exactly like Subtitlemewrong's problem which stated...
"I received only the December '07 update of Quicktime (7.4) and Security Update (2007-009 1.1). That's it. And then my life went to shambles and flash content no longer displays on the web!"...
"A website with flash content won't load, instead I get a block icon with a question mark and a message saying, "The page "Page Title X" has content of MIME type "application/x-shockwave-flash". Because you don't have a plug-in installed for this MIME type, the content can't be displayed." Sometimes I get directed to the Adobe site for Flash, which I'll download. But that doesn't do anything either."
I tried the solution that was given by Klaus1 and it didn't work. I uninstalled using http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=2
Then I tried to install using http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash. I clicked on powerpc -based mac and started to install and recieved taht same message that I didn't have the plug-in installed this MIME type.
Thanks for you help.Yeah, I already tried it under a different account. Unfortunately the new account had the same problem. I appreciate the suggestion. My only logical guess is that the new update to quicktime doesn't mix with 10.3 Panther. I am planning on upgrading to Leopard next week after I get my paycheck. Who knows, maybe those guys will know how to fix it, but so far...no luck. Thanks.
-
Content of MIME type "application/x-shockwave-flash"
Hey, im not that advanced with this stuff but I keep on getting this message recently and I cannot remember any recent major downloads/updates:
This page has content of MIME type “application/x-shockwave-flash”, but you don’t have a plug-in installed for this MIME type.
This happens on Youtube, facebook and stuff like that. Also, Ive noticed that apple trailers using quicktime isnt working. I have installed the new plugins for flashplayer and Quicktime but still no result.
Any help PLEASE? I hate using firefox coz i love safari!
Cheers!
PratikHave you by any chance moved Safari from its proper place in the Applications Folder to a sub-folder, or renamed it?
Try this routine:
Repairing permissions is an important part of regular maintenance, and should always be carried out both before and after any software installation or update.
Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
In First Aid, click on Repair Permissions.
This only takes a minute or two.
Background information here:
http://docs.info.apple.com/article.html?artnum=25751
and here:
http://docs.info.apple.com/article.html?artnum=302672
If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
Once that is complete reboot again from your usual start-up disk.
More useful reading here:
Resolve startup issues and perform disk maintenance with Disk Utility and fsck
http://support.apple.com/kb/TS1417 -
Exporting AAC m4a podcast mime type problem
Hi All,
I have a podcast that I use GB3 to produce the enhanced podcast with (artwork podcast with links).
When I upload this file to my server it shows up as application/octet-stream for mime type. The extension is still m4a but the desktop icon is now a quicktime movie whereas in the past it was always an iTunes icon, when I used ChapterToolMe, for instance.
As a result my podcast/rss feed on the iTMS no longer updates the more recent shows (i've tried all the tricks to get that end of things working)
I'm guessing there is some setting in GB3 that is changing the mime-type behind the scenes under the GUI. Can anyone suggest anything? Converting in iTunes all over again?Nathan,
I wonder if you've found a solution yet? I'm having the same issue with my picture and link enhanced podcast. Whenever i post an m4a to my RSS feed, it breaks my subscription in iTunes????
I hope someone has some knowledge on a fix for this.
Adam -
How can I use one Add-on prior to another for specific MIME-types?
I'm using Shockwave Flash plugin to watch some videos on YouTube, StreamCloud, etc. It also handles .mkv and .mp4 files/streams. After installing VLC Web plugin to handle MIME-types like mp3/4, mkv additionally and prior to the Flash plugin, Firefox keeps using Flash to handle those types insted. I cannot find options to set the desired priorities. Only disabling the Flash plugin solves my problem, but also keeps me from watching Flash contents, which Is not acceptable.
Did I miss something or is this Firefox's fault?If you type or paste '''about:plugins''' in the address bar and press Enter, you can see which plugins are associated which various content types.
I do not know how to prioritize one over the other for the same content type if the plugin settings (plugins often have an interface outside of Firefox to adjust their settings) do not allow that.
As for MP4, I don't think Flash normally would be selected. I suspect the website is specifying a Flash media player and streaming the MP4 through that. If you want to hide the Flash plugin from a particular website, you can use the Permissions tab of the Page Info dialog.
Click the padlock or globe icon in the address bar, then More Information, then Permissions. The top section of the Permissions panel should be "Activate Plugins". Here you can select Block for Flash for the current site. After reloading the page, does the media play using a different plugin? -
Icon (mime objects) not getting displayed in Integrated ITS
Hi all,
We have activated integrated ITS. Created service in SICF but the ICONS of Buttons are not shown. Also we cannot click any button to start the action.
Please advise.
Regards,
FSHi FS,
The Mime Types in SAP Its Integrated are on this path: /sap/public/bc/its/mimes/
You can reference your icon with the URL: http://host:port/sap/public/bc/its/mimes/service/theme/icon.gif
If you have the icon of theme 99 in the SE80 Internet Service and your icon name is square.gif, and your service name is ZSERVICE, the call are:
HTMLB:
img src="/sap/public/bc/its/mimes/ZSERVICE/99/square.gif" between symbols "<" and ">"
URL in the Explorer:
http://host:port/sap/public/bc/its/mimes/ZSERVICE/99/square.gif
Hope it´s help.
Best Regards.
Edited by: Alberto Ruiz on Apr 8, 2009 4:02 PM -
HP Printer Control App installed on my pc windows 8 but wont update in windows store
Ii have downloaded the hp printer control app on my desktop pc which is windows 8, it shows my printer which is the HP Photosmart B110a its product number is CN245B. It keeps saying in my windows store app that it needs to be updated as other apps do but it just says pending constantly and theres no change ive used the app to get software for printer such as certain wizards and such. but it wont update ive got a hp printer control app on my ipod touch too and this also has no trouble picking up the printer and works fine, is it because ive got windows 8? please can someone help as its not right for it just to be there stuck not updating, thanks
lollykaye2005A bit of a shot in the dark, but this appears to be an issue with pulling down the update from the Windows Store. I have not run into this issue directly, but this thread has a lot of information.
http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_store/windows-8-apps-are-pending-...
The one tidbit that might help here from that thread is:
"finally I found a solution. go to troubleshooting (press win+w >then type troubleshooting). now a window opens in desktop. click "fix problems with windows updates". now click next. windows will search for solutions, but it wont find anything. then windows will ask if u want to try in administrator mode. click yes. windows will find and solve the problem. that's it."
I work for HP. -
How to determine the MIME types of the files?
I'm making an application, in which I've to upload the files to the database. Now I want to insert into the database the MIME type of the files. Now how can I know that which type of the file is having which MIME type?
where can I get the list of all supported MIME types?
Even if I get the list, then every time I update the file in the database, so every time I have to check the file extension and then insert the MIME type...
this seems to be a tedioius job..
Is there any simple way to do this?I could ask "supported by what?" but I assume you will
be the one supporting them. Here's a link to the
latest list of registered MIME types.HERE's the link...
ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types -
Quicktime MIME types translated in non-english versions
In the continuation of a previous thread, there seems to be a problem with the last quicktime update that translated mime types's names (and using chars like "í" and "á), in non-english versions of quicktime and macosx (in my case, portuguese versions), that might conflict with browsers like firefox, preventing them from opening embed vídeos. For example, i have MIME types with names like "aplicação/x-rstp" and "áudio/x-mp3" which are causing several issues. How can I change them back to english and solve this problem?
Thanks in advance.No one?
-
Gnome: mime types, file associations and defaults.list
I installed the new Gnome 2.8 during the weekend and now my file type associations is completely bloated. The mime system is intact - Nautilus recognises files properly. However, Nautilus doesn't know which applications to open a specific file with. I have read other posts and found useful information, but not the solution.
This post in FedoraForum gave me a hint to what's causing the problem:
http://fedoraforum.org/forum/showthread … post127530
It seems that the file defaults.list is missing from /usr/share/mime/applications. Apparently this file contains the associations between applications and mime types. I have not be able to find out which package should provide this file or how to recreate it. Can anyone help - maybe provide the name of the package that provides this file?
Thanks,Yeah, I got tired of Evolution not knowing about opening *.docs in openoffice. After several hours of research, the key is the /usr/share/applications/mimeinfo.cache, /opt/gnome/share/applications/mimeinfo.cache, and the MimeType fields in the *.desktop files. The mimeinfo.cache in /usr was empty and the /opt one had gthumb and other apps but no OO:
[MIME Cache]
application/x-gnome-stones=gnome-stones.desktop
image/jpeg=gthumb.desktop
application/postscript=ggv.desktop
...snip...
That's a lot of blather to say that the fix for Evolution/OpenOffice was to add the proper MimeType entry to /usr/share/applications/ooo645writer.desktop:
MimeType=application/vnd.ms-word;application/msword
and then run "update-desktop-database". Problem solved.
Another problem is that within Evolution it says an attached doc is a "application/msword" and not a "Microsoft Word Document". Unfortunately this is because freedesktop.org decided to use application/vnd.ms-word instead of application/msword like the rest of the world. If you check the vnd.ms-word entry in /usr/share/mime/packages/freedesktop.org.xml it defines an alias msword but the new mime system doesn't appear to recognize aliases yet. The solution I used was to rename the entry to msword. Another possible solution might be to remove the msword alias from the vnd.ms-word entry and create a new msword entry based on the vnd.ms-word one. Then run "update-mime-database /usr/share/mime". Hope that made sense.
I think the defaults.list is part of the previous GNOME MIME setup cause I don't have one and I'm not experiencing any problems. For other apps check for the associations in the mimeinfo.cache's and if missing add the MimeType's to the app's *.desktop.
Maybe you are looking for
-
Feedback from my Apple Store Survey (Additional info field)
The delivery of my iPhone docks was amazing, I placed the order about 1-2pm Tuesday and it arrived well before noon on wednesday. It was so quick I was stunned. Too bad I can't purchase items like this through iTunes. Probably not your field, but i'm
-
In trace file and output file showing bind variable instead of value
Hi, database 9i optimizer = choose(for cost based) In my trace file and output file showing bind variable instead of value. in my trace file 20 queries. I alse set this parameter in session level. alter session set events '10046 trace name context fo
-
Critical - Transactions don't work properly under WL 6.1?
Hi all, we used weblogic 6.0 in the past and it worked fine with trsanactions. Which means for example having a statful session in a container managed transaction calling several other beans (mainly entity) usi
-
Illustrator 64 bit will not open
Cannot open Illustrator 64bit. It says it cannot oppen.
-
Andorid Monitor (ddms) crash at start for oxygen-gtk
If I change GTK2 Theme to Raleigh all work good. This is the error: # Problematic frame: # C [libgobject-2.0.so.0+0x3236c] g_type_check_instance_cast+0x1c Look like same of this: https://bbs.archlinux.org/viewtopic.php?id=178404 thanks!