You are not logged in.

#26 2008-06-24 04:39:12

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,898
Website

Re: Mime Types Gone After System Update

removing mime.cache works for me too....


Mr Green

Offline

#27 2008-06-24 05:07:03

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

Re: Mime Types Gone After System Update

tigrmesh wrote:

Please consider filing a bug report.

Misery wrote:

Offline

#28 2008-06-24 10:38:06

Ink-Jet
Member
From: London
Registered: 2008-03-27
Posts: 64
Website

Re: Mime Types Gone After System Update

+1 for removing mime cache, fixed my problem.

Offline

#29 2008-06-24 10:59:16

jcci
Member
From: China / Germany
Registered: 2007-06-10
Posts: 185

Re: Mime Types Gone After System Update

Removing the cache really solves the prolem as long as Nautilus is used. With PCmanfm you have to define the matching application one by one and PCmanfm won't remember any preference.
So it is too early to close this thread.

Last edited by jcci (2008-06-24 10:59:56)

Offline

#30 2008-06-24 13:23:03

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Mime Types Gone After System Update

Using Nautilus and removing mime cache fixed mine as well.  If PCmanfm does differently I cannot test as I don't use it.  Just my $0.02 US currency.


Matt

"It is very difficult to educate the educated."

Offline

#31 2008-06-24 14:06:09

Stalafin
Member
From: Berlin, Germany
Registered: 2007-10-26
Posts: 617

Re: Mime Types Gone After System Update

Anything new on the issue? I am using pcmanfm too - I deleted mime-types, shared-mime-info, even pcmanfm and all the config files I could find. Yet after reinstallation nothing changed. sad

Offline

#32 2008-06-24 19:38:57

stojic
Member
From: Zagreb, Croatia
Registered: 2008-02-24
Posts: 51

Re: Mime Types Gone After System Update

Stalafin wrote:

Anything new on the issue? I am using pcmanfm too - I deleted mime-types, shared-mime-info, even pcmanfm and all the config files I could find. Yet after reinstallation nothing changed. sad

There was some talk about downgrading shared-mime-info in Arch to version 0.3 (see http://bugs.archlinux.org/task/10734). I tested 0.3 a bit and it worked fine. For now there seems to be no solution for pcmanfm users aside from not upgrading shared-mime-info (I'm still using 0.23).

Offline

#33 2008-06-25 00:23:52

jcci
Member
From: China / Germany
Registered: 2007-06-10
Posts: 185

Re: Mime Types Gone After System Update

Downgrading works definitely. The version is 0.23. Please mail me if you should need the file. Hopefully a clean solution will be there soon.

Offline

#34 2008-06-25 01:59:09

Warper
Member
From: Quito, Ecuador
Registered: 2008-04-08
Posts: 47

Re: Mime Types Gone After System Update

stojic wrote:

I had the same problem, fixed it by removing mime.cache in home dir:

rm $HOME/.local/share/mime/mime.cache

I also reinstalled mime-types while trying to fix it, as in post #3 (that didn't fix evince, but it did fix /etc/mime.types which lacked newlines).

EDIT: Removing mime.cache only fixed problem with evince not opening .pdf files, pcmanfm still shows wrong file types. Downgrading shared-mime-info fixes that here too.

Removing mime.cache worked for me, thanks.
I didn't have any mime.types installed before so I uninstalled it.

Offline

#35 2008-06-25 06:02:04

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Mime Types Gone After System Update

EDIT: This did work, just took a few minutes to take effect hmm
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Before I add more info to the bug report, do I need to restart Nautilus for the fix to work?

I've tried this:

pacman -Rn mime-types shared-mime-info ; sudo pacman -S mime-types
pacman -U /var/cache/pacman/pkg/shared-mime-info-0.23-1-i686.pkg.tar.gz 
rm $HOME/.local/share/mime/mime.cache
update-mime-database -V /usr/share/mime

The last command threw some errors: http://pastebin.com/mc8b691

I still can't open PNG, JPEG, ODT etc files by double-clicking them sad

Last edited by fukawi2 (2008-06-25 06:08:59)

Offline

#36 2008-06-25 10:00:31

joephantom
Member
From: Latinoamérica
Registered: 2008-01-09
Posts: 94
Website

Re: Mime Types Gone After System Update

JeremyTheWicked wrote:

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)

+1. I did the same and then: pacman -Syu and everything works just fine.


By striving to do the impossible, man has always achieved what is possible. Those who have cautiously done no more than they believed possible have never taken a single step forward - Mikhail Bakunin

Offline

#37 2008-06-25 13:12:57

PierreAd
Member
Registered: 2007-05-07
Posts: 19

Re: Mime Types Gone After System Update

joephantom wrote:
JeremyTheWicked wrote:

Removing ~/.local/share/mime/mime.cache solved the problem for me (no downgrading was necessary)

+1. I did the same and then: pacman -Syu and everything works just fine.

Thanks a lot, it perfectly worked for me too (using nautilus)

Offline

#38 2008-06-25 15:16:01

Lyceuhns
Member
From: João Pessoa, Paraíba, Brasil
Registered: 2008-05-09
Posts: 121

Re: Mime Types Gone After System Update

Benzo wrote:

I downgraded the package shared-mime-info to version 0.23 and mimes are back. The new version (0.40) got problems

I did this, and more...
added this line to the pacman.conf:
IgnorePkg     = shared-mime-info

Now i do a -Syu without problems. smile

Offline

#39 2008-06-25 21:04:48

quad3d@work
Member
From: Austin, TX
Registered: 2006-12-29
Posts: 81
Website

Re: Mime Types Gone After System Update

PekWM+pcmanfm here.

I had to remove /usr/share/mime/application/x-cdrdao-toc.xml and -Suy worked.

Offline

#40 2008-06-25 21:11:28

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: Mime Types Gone After System Update

@quad3d@work

it is not a question of pacman upgrade does not work. it is about the mime tpyes, which are fucked up after upgrading to the latest version of shared-mime-info.

jfyi
rgds
hcjl

Offline

#41 2008-06-26 17:13:21

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Mime Types Gone After System Update

Thanks secretfox!!! big_smile

pcmanfm with openbox here and downgrading was the only way to do it.

Offline

#42 2008-06-26 17:37:02

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Mime Types Gone After System Update

Lyceuhns wrote:
Benzo wrote:

I downgraded the package shared-mime-info to version 0.23 and mimes are back. The new version (0.40) got problems

I did this, and more...
added this line to the pacman.conf:
IgnorePkg     = shared-mime-info

Now i do a -Syu without problems. smile

I can't get IgnorePkg to work. hmm
Where am I supposed to add the line in pacman.conf? If I put it close to the beginning the command is ignored, but if I put it close to the end I get:

error: config file /etc/pacman.conf, line 66: directive 'IgnorePkg' not recognized.


What am I doing wrong here? (OT I know tongue)

Offline

#43 2008-06-26 17:59:46

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: Mime Types Gone After System Update

@Perre

that is where i have got it and it works.

#
# /etc/pacman.conf
#
# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
IgnorePkg   = shared-mime-info
<...>

Last edited by hcjl (2008-06-26 18:00:42)

Offline

#44 2008-06-26 18:07:49

Perre
Member
Registered: 2008-01-22
Posts: 189

Re: Mime Types Gone After System Update

hcjl wrote:

@Perre

that is where i have got it and it works.

#
# /etc/pacman.conf
#
# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
IgnorePkg   = shared-mime-info
<...>

Thanks man, that did it!
I really like how Pacman warns me that it ignores a package upgrade. Makes it easy to remember to upgrade later when the bug is fixed. big_smile

Offline

#45 2008-06-26 18:28:01

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Mime Types Gone After System Update

Thanks for the help above guys. smile

Removing the mime.cache file fixed it for Gnome for me, and downgrading shared-mime fixed it for PCManFM for me.

Offline

#46 2008-06-28 13:29:01

benton
Member
Registered: 2008-06-20
Posts: 13

Re: Mime Types Gone After System Update

skottish wrote:

Downgrading worked for me. These are the original files for shared-mime-inf 0.23:

PKGBUILD

# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=shared-mime-info
pkgver=0.23
pkgrel=1
pkgdesc="Freedesktop.org Shared MIME Info"
arch=(i686 x86_64)
license=('GPL')
depends=('libxml2' 'glib2')
makedepends=('perlxml' 'pkgconfig')
install=shared-mime-info.install
url="http://freedesktop.org/Software/shared-mime-info"
source=(http://freedesktop.org/~hadess/${pkgname}-${pkgver}.tar.bz2)
md5sums=('3120a720f6a94881614b533f37a7671f')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=${startdir}/pkg install
  rm -f ${startdir}/pkg/usr/share/mime/mime.cache
}

shared-mime-info.install

post_install() {
  update-mime-database /usr/share/mime > /dev/null 2>&1
}

post_upgrade() {
  post_install $1
}

op=$1
shift

$op $*

Thanks! I just copied these two files to an empty dir and issued:

makepkg -g
makepkg
pacman -U shared-mime-info-0.23-1-i686.pkg.tar.gz (as root)

And it worked! If an inexperienced linux user like me could do this so easily then anyone can do it! big_smile  Thanks to everyone!

Last edited by benton (2008-06-28 13:31:34)

Offline

#47 2008-06-28 14:43:48

biloky
Member
Registered: 2008-03-02
Posts: 61

Re: Mime Types Gone After System Update

PCManFM 0.4.5 is out...

Changes:
* Support new shared-mime-info 0.40.
* Adjust UI of preference dialog
* Some minor fixes.

Offline

#48 2008-06-28 20:54:45

stojic
Member
From: Zagreb, Croatia
Registered: 2008-02-24
Posts: 51

Re: Mime Types Gone After System Update

biloky wrote:

PCManFM 0.4.5 is out...

Thanks for info, it indeed works with shared-mime-info 0.40 big_smile

Offline

Board footer

Powered by FluxBB