You are not logged in.

#1 2009-10-20 13:34:55

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Mimetypes in pcmanfm

I -Syu'ed this morning to get the new Openbox.

Great stuff! The Xyne's file system menu finally works with something like efficient speed. It used to take 4-5 seconds for anything to happen when the mouse hovers over the menu item. Now it just pops right up.

Unfortunately, the mimetypes... the file that tells Openbox what to use to open files when they are clicked on, suddenly stopped working.I tried reinstalling shared-mime-info from the repo, but that did not work. Openbox still wants to open pdf's with gvim, for instance.

I have no idea what to hunt down to fix this minor annoyance. Some help would be much appreciated.

Edit: Something I just noticed... The check box in the "open with..." dialog box is missing as well, implying that I cannot save new defaults. I can still type in the commands in the commandline box.

Last edited by B (2009-10-23 14:38:25)


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#2 2009-10-20 13:52:56

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Mimetypes in pcmanfm

What do you mean by "openbox"? As far as I know, openbox doesn't open anything on it's own - it's just a WM.

Offline

#3 2009-10-20 14:09:27

pichulines
Member
From: Spain
Registered: 2009-06-26
Posts: 22
Website

Re: Mimetypes in pcmanfm

the same happened to me, but I think it was after updating the shared-mime-info package (today it was updated to 0.70 version)

I have noticed it with pcmanfm. The Mime Type column now shows "unknown" for almost all the files, and the "open with" menu option doesn't recognize any file type.

I have tried to exec "sudo update-mime-database /usr/share/mime" with no success.

Offline

#4 2009-10-20 14:18:59

ASOM
Member
Registered: 2009-07-10
Posts: 68

Re: Mimetypes in pcmanfm

I believe there is also ~/.local/share/mime under Arch. I'm not at home so cannot verify 100%

I ran into the same problem under Gentoo and updating the users mime cache solved the problem.

Offline

#5 2009-10-20 14:28:19

rocktorrentz
Member
From: Southampton, England
Registered: 2007-08-05
Posts: 141

Re: Mimetypes in pcmanfm

I had this exact problem. I had cleared my package cache so didn't have the old package but I've built one from the old pkgbuild. You can download it here:
http://users.ecs.soton.ac.uk/sw29g08/sh … pkg.tar.gz

I'm pretty sure this only affects 64bit as 32bit is still on 0.60

Offline

#6 2009-10-20 15:49:26

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Mimetypes in pcmanfm

Confirmed on x86_64 .
Only downgrading shared-mime-info fixes it .

Last edited by Nezmer (2009-10-20 15:49:51)


English is not my native language .

Offline

#7 2009-10-21 00:27:57

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Mimetypes in pcmanfm

About the 'Openbox" opening stuff....   ya..  early. pcmanfm.

Ok, a downgrade is needed.... this will teach me to keep old working binaries on hand!

Thanks for the old package link.

Edit: Thanks, the downgrade worked perfectly. Anyone file a bug yet?

Edit 2: Reported, Hmm... My first bug report. I did not realize that I had never reported any bugs.

Here's a link if y'all want to vote for it. http://bugs.archlinux.org/task/16760

Last edited by LeoSolaris (2009-10-21 00:51:21)


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#8 2009-10-21 07:05:18

lastchancetosee
Member
From: Berlin
Registered: 2009-02-19
Posts: 131

Re: Mimetypes in pcmanfm

I have the same problem and downgrading fixed it. It's funny how this breaks pcmanfm but not thunar.
I also tried this (from greg's comment to your bug report), but updating the /usr/share/mime database didn't help and I don't even have a ~/.local/share/mime, so that can't help. Why don't I have this folder?

On a related note: What the *!$% is wrong with the updates these days? I have a downgraded qt ('cause opera won't work), a downgraded gtk ('cause flash won't work) and now a downgraded shared-mime-info. That's a lot of broken code ...


My ship don't crash! She crashes, you crashed her!

Offline

#9 2009-10-22 11:07:20

Dirk Sohler
Member
From: Hamburg, Germany
Registered: 2009-10-03
Posts: 109

Re: Mimetypes in pcmanfm

Downgrading shared-mimeinfo fixed the bug for me (resp. it removed it, because the bug only appears with the new version and is not included in the old version *g*).

Btw. Schlunix.org holds old versions of tha packages for both architectures.

Offline

#10 2009-10-22 15:22:06

flako
Member
Registered: 2008-10-24
Posts: 56

Re: Mimetypes in pcmanfm

I have the same problem after upgrading the shared-mime-info package today. Upgrading the mime-database didn't work so i'll try to downgrade the package in a minute. I'm running i686 btw

Edit: Downgrading to 0.6 fixed it

Last edited by flako (2009-10-22 15:27:50)

Offline

#11 2009-10-22 16:40:39

gopher292
Member
Registered: 2009-03-02
Posts: 16

Re: Mimetypes in pcmanfm

Confirmed on x86_64. Running
yaourt -U /var/cache/pacman/pkg/shared-mime-info-0.60-1-x86_64.pkg.tar.gz
fixes it.

Offline

#12 2009-10-22 19:16:53

sleepwalker
Member
Registered: 2009-10-22
Posts: 1

Re: Mimetypes in pcmanfm

I had the same problem and downgrading update-mime-database works for me too. Thanks.

Offline

#13 2009-10-23 05:12:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Mimetypes in pcmanfm

The problem is fixed in pcmanfm-svn.

Offline

#14 2009-10-23 09:23:58

rocktorrentz
Member
From: Southampton, England
Registered: 2007-08-05
Posts: 141

Re: Mimetypes in pcmanfm

I use pcmanfm-fuse and unfortunately it hasn't had an update in ages. Might have to go into the code myself and find out what needs changing...

Offline

#15 2009-10-23 14:18:24

LeoSolaris
Member
From: South Carolina
Registered: 2008-03-30
Posts: 354

Re: Mimetypes in pcmanfm

Oh good it's already fixed in pcmanfm. I just need to upgrade to the svn version.

Ask and ye shall receive.

Thanks Skottish!


I keep getting distracted from my webserver project...

huh? oooh...  shiny!

Offline

#16 2009-10-23 14:39:29

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Mimetypes in pcmanfm

I modified the topic title, since the reference to Openbox was highly deceiving. I use Thunar and put off the upgrade because of this topic wink.

Secretly I knew all along it couldn't be Openbox tongue.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#17 2009-10-24 01:20:35

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Mimetypes in pcmanfm

rocktorrentz wrote:

I use pcmanfm-fuse and unfortunately it hasn't had an update in ages. Might have to go into the code myself and find out what needs changing...

All the functionality in the fuse branch is in main-subversion except the third menu. You can still connect through /mnt. You can even make a bookmark so that it appears in the location pane.


@LeoSolaris. You're welcome brother. Expect mail this weekend.

@B. I've always said that you're in the top 10 current mods here at Arch. I stand by that whole-heartedly.

To everyone, I may have a couple of dependencies listed here that aren't necessary for you (or at all?), but this is working pcmanfm-svn PKGBUILD. I also compiled about the desktop management stuff (icons):

pkgname=pcmanfm-svn
pkgver=908
pkgrel=1
pkgdesc="A fast and light file manager with remote file system mounting support."
arch=(i686 x86_64)
url="http://pcmanfm.sourceforge.net/"
license=('GPL')
depends=('gtk2' 'glib2' 'startup-notification' 'hal' 'dbus' 'intltool' 'fam' )
makedepends=('subversion' 'gcc' 'automake')
conflicts=('pcmanfm')
optdepends=('fusesmb' 'sshfs' 'curlftpfs' 'smbnetfs')
source=()
md5sums=()
options=('!makeflags')

_svntrunk=https://pcmanfm.svn.sourceforge.net/svnroot/pcmanfm/trunk
_svnmod=pcmanfm

build() {
    cd $startdir/src

    if [ -d $_svnmod/.svn ]; then
        (cd $_svnmod && svn up -r $pkgver)
    else
        svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
    fi

    msg "SVN checkout done or server timeout"
    msg "Starting make..."

    cp -r $_svnmod $_svnmod-build
    cd $_svnmod-build

    ./autogen.sh    --sysconfdir=/etc \
                    --prefix=/usr \
                    --enable-hal \
                    --disable-desktop-integration \
                    --with-preferable-sudo=sudo || return 1
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1
    rm $startdir/pkg/usr/share/applications/pcmanfm-find.desktop

    rm -rf ../$_svnmod-build
}

And the install file (pcmanfm.install) Corrected thanks to ROOKIE.

post_install() {
  update-mime-database /usr/share/mime > /dev/null
  update-desktop-database -q
}

post_upgrade() {
  post_install
}

post_remove() {
  post_install
}

Offline

#18 2009-10-24 10:07:49

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: Mimetypes in pcmanfm

@skottish:

Many thanks for the PKGBUILD, but unfortunately I hit an error:

ca.po:298: `msgid' and `msgstr' entries do not both end with '\n'
/usr/bin/msgfmt: found 1 fatal error
make[1]: *** [ca.gmo] Error 1
make[1]: Leaving directory `/home/user/pkg/build/pcmanfm-svn/src/pcmanfm-build/po'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.

(My i686 system is fully upgraded.)

Last edited by ninian (2009-10-24 10:08:31)

Offline

#19 2009-10-24 10:23:19

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: Mimetypes in pcmanfm

The problem is in bad translation in Catalan po file, see here http://forum.lxde.org/viewtopic.php?f=12&t=1201

Offline

#20 2009-10-24 10:26:05

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: Mimetypes in pcmanfm

knedlyk wrote:

The problem is in bad translation in Catalan po file, see here http://forum.lxde.org/viewtopic.php?f=12&t=1201

Wow - that's unexpected! Any idea how I can bypass this problem?!

Offline

#21 2009-10-24 10:46:05

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

Re: Mimetypes in pcmanfm

I manually removed all pointers on Catalan, i.e. removed "ca" in src/pcmanfm-svn/po/LINGUAS.in and then compiled again (not removing the previously compiled libraries and binaries).

I confirm that in compiled pcmanfm-svn mime types work again.

Offline

#22 2009-10-24 11:26:20

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Mimetypes in pcmanfm

skottish wrote:

@B. I've always said that you're in the top 10 current mods here at Arch. I stand by that whole-heartedly.

That begs the question: do we even have 10+ mods? lol


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#23 2009-10-24 11:32:24

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Mimetypes in pcmanfm

ninian wrote:
knedlyk wrote:

The problem is in bad translation in Catalan po file, see here http://forum.lxde.org/viewtopic.php?f=12&t=1201

Wow - that's unexpected! Any idea how I can bypass this problem?!

It is a simple typo. I changed the offending line in ca.po according to the error message and recompiled with makepkg -e.
(Yaourt loads the package to /var/abs/local/yaourtbuild/pcmanfm-svn)

pcmanfm now works perfectly again.


To know or not to know ...
... the questions remain forever.

Offline

#24 2009-10-24 13:43:08

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Mimetypes in pcmanfm

skottish, I think you have a little mistake there, You have based your install file in the one in aur and that one has the same problem I believe.

You have

post_install() {
  update-mime-database usr/share/mime > /dev/null
  update-desktop-database -q
}

when I believe it should be

post_install() {
  update-mime-database /usr/share/mime > /dev/null
  update-desktop-database -q
}

R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#25 2009-10-24 14:45:21

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: Mimetypes in pcmanfm

@bernarcher and @knedlyk:

Thanks a lot! Got it compiled and working now.
big_smile

Offline

Board footer

Powered by FluxBB