Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Super strange file association (gnome)

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
karamfil
n00b
n00b
Posts: 4
Joined: Wed Feb 11, 2009 9:03 am

Super strange file association (gnome)

  • Quote

Post by karamfil » Wed Feb 11, 2009 9:11 am

Hello

I have extremely strange problem.

I had downloaded a .zip archive file and it didn't have an icon and wasn't associated with any program so I right clicked it > Open with > Open with other application >and i chose my archive manager... and when i extracted the archive I tryed to open one text file on my desktop and it tryed to open it with the archive manager. 8O Then i change the file association from the properties of the file and now all my files are opened with text editor.


Gnome version is 2.22.3 if this helps

I created new user and it works normally there.


EDIT: I think I found part of the problem. Every file's mime type is text/plain
Last edited by karamfil on Wed Feb 11, 2009 11:44 am, edited 2 times in total.
Top
sh3ll
n00b
n00b
Posts: 2
Joined: Thu Feb 28, 2008 9:37 pm

  • Quote

Post by sh3ll » Wed Feb 11, 2009 11:39 am

I have exactly the same problem, but in my case, it appeared after emerge --update yesterday...
Every file wants to open with text editor, and evince won't open pdf files.
If i change the behavior, then every file will open with other app which I assign.

So far, i managed to google that file associations are related with gvfs.
If I run gvfs-info somefile.desktop as normal user :
standard::content-type: text/plain
standard::fast-content-type: application/octet-stream

as root :
standard::content-type: application/x-desktop
standard::fast-content-type: application/x-desktop

Hope that answer is outthere ...
Top
cwr
Veteran
Veteran
Posts: 1969
Joined: Sat Dec 17, 2005 11:17 am

  • Quote

Post by cwr » Wed Feb 11, 2009 11:50 am

Something's roached the mime types; I _think_ the command is "update_mime_types",
but I wouldn't put money on it. Try "apropos mime" and see what turns up. The man
pages for the various commands are pretty clear.

Mime types are most listed in /usr/share/mime, but some may be in /usr/local/share/mime.

Will

EDIT: /usr/share/applications/mimeinfo.cache sets mimetype associations, and can be
updated by hand or with "update-desktop-database". The mime database itself is
updated with "update_mime_database", (not _types, as above), which is best run
with the --verbose option.
Last edited by cwr on Wed Feb 11, 2009 3:16 pm, edited 1 time in total.
Top
sh3ll
n00b
n00b
Posts: 2
Joined: Thu Feb 28, 2008 9:37 pm

  • Quote

Post by sh3ll » Wed Feb 11, 2009 12:00 pm

Thanks cwr/Will :D, it worked ...
I found the command just before you posted, but couldn't find mime dirs...
Top
karamfil
n00b
n00b
Posts: 4
Joined: Wed Feb 11, 2009 9:03 am

  • Quote

Post by karamfil » Wed Feb 11, 2009 12:00 pm

Ok i fixed it..

Heres what i did after hell of a reading :D

1: $ update-mime-database home/username/.local/share/mime
2: eix-sync or emerge --sync
3: emerge -Dav gvfs
4: reboot

and now it is ok
Top
GoldenMouse
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 112
Joined: Thu Sep 29, 2005 2:15 am

  • Quote

Post by GoldenMouse » Wed Feb 11, 2009 10:18 pm

Having the same problem. I posted earlier before seeing this. Going to try those fixes.
I'm using Gentoo x86, no overlays, no unmasked packages, only wine keyworded. The desktop environment is Gnome, no others installed. Now, for some odd reason, the system has become unable to recognize the type of file that most files are. It tries to treat them all as plaintext and attempting to open a given file with its proper program (rather than double-clicking) leads to the program being unable to open it and complaining that the file is an octet stream.

For example, I have a few pdfs and zips on my desktop. They show previews as if they were text files. I double click, and gedit attempts to open them, fails, and displays an error about them being octet streams. I go to evince and archive manager and try to open their respective files through the program. Evince and archive manager make the same complaint. I have some image files in a folder on my desktop. They preview just fine, but cannot open for the same reasons. Thankfully, OpenOffice still appears to be able to open its files, but only through its menus, not through the file manager.
For what it's worth, it seemed to start with zip files as well.
Top
onexused
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Wed Jan 30, 2008 10:57 pm

  • Quote

Post by onexused » Thu Feb 12, 2009 12:04 pm

I had this problem, too, but that command fixed it. Thanks!
Shouldn't this have been done automatically with (what program?)'s update, since it's a problem?
Top
letrigre
n00b
n00b
User avatar
Posts: 50
Joined: Tue Feb 14, 2006 5:26 pm

  • Quote

Post by letrigre » Thu Feb 12, 2009 1:39 pm

I dont have a .local/share/mime in my home user. I can't fix it. any other idea to fix that ?
Top
onexused
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Wed Jan 30, 2008 10:57 pm

  • Quote

Post by onexused » Fri Feb 13, 2009 5:22 am

letrigre wrote:I dont have a .local/share/mime in my home user. I can't fix it. any other idea to fix that ?
So create the directories first:

Code: Select all

$ mkdir -p ~/.local/share/mime/packages ~/.local/share/mime/application; update-mime-database /home/<username>/.local/share/mime
Edit: Heh, thought it was a file instead of a directory. Maybe this'll work better.
Last edited by onexused on Sun Feb 15, 2009 9:38 am, edited 1 time in total.
Top
letrigre
n00b
n00b
User avatar
Posts: 50
Joined: Tue Feb 14, 2006 5:26 pm

  • Quote

Post by letrigre » Fri Feb 13, 2009 3:47 pm

It's a workaround or a true fix ?
Top
letrigre
n00b
n00b
User avatar
Posts: 50
Joined: Tue Feb 14, 2006 5:26 pm

  • Quote

Post by letrigre » Fri Feb 13, 2009 3:50 pm

Anyway i tried but
Directory '/home/mornifle/.local/share/mime/packages' does not exist!
it makes sense in fact i think it's for users specific mime type. I guess that the system should work without that.
I will try to find another fix
Top
onexused
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 86
Joined: Wed Jan 30, 2008 10:57 pm

  • Quote

Post by onexused » Sun Feb 15, 2009 9:41 am

letrigre wrote:Anyway i tried but
Directory '/home/mornifle/.local/share/mime/packages' does not exist!
it makes sense in fact i think it's for users specific mime type. I guess that the system should work without that.
I will try to find another fix
Sorry, I didn't even look in the directory before I answered. ~/.local/share/mime is supposed to be a directory, not a file. For me, it also contains two directories : application and packages. Hope that works better. When I did this, though, I didn't have to create the directories; they were already there.
Top
barikman
n00b
n00b
Posts: 15
Joined: Mon Aug 08, 2005 8:43 pm

  • Quote

Post by barikman » Sun Feb 22, 2009 12:37 pm

For me, the following worked immediately (I don't have a local mime directory either) - no reboot or any other messing about was required:

Code: Select all

update-mime-database /usr/share/mime
I found some talk in gentoo-user that suggested the mime db should be in /usr/local/share/mime/, but it isn't - it's in /usr/share/mime.

HTH

Phil
Top
sera
Retired Dev
Retired Dev
Posts: 1017
Joined: Fri Feb 29, 2008 3:03 pm
Location: CET

  • Quote

Post by sera » Fri Feb 27, 2009 3:21 pm

I ran in the same problem, the fix was to remove "~/.local/share/mime/". Anything else mentioned in this thread didn't work for me. Don't know where this directory came from in the first place.
Top
rlittle
Apprentice
Apprentice
User avatar
Posts: 200
Joined: Wed Dec 17, 2003 9:59 pm

  • Quote

Post by rlittle » Sat Feb 28, 2009 9:00 pm

Worked for me to. That is to say:

(as root)

Code: Select all

update-mime-database -v /usr/share/mime
(as user)

Code: Select all

update-desktop-database -v ~/.local/share/mime
..and restart the desktop.
I need a better signature...
Top
dylix
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Fri Sep 20, 2002 3:11 am
Location: Atlanta
Contact:
Contact dylix
Website

  • Quote

Post by dylix » Mon Mar 02, 2009 3:11 pm

rlittle wrote:Worked for me to. That is to say:

(as root)

Code: Select all

update-mime-database -v /usr/share/mime
(as user)

Code: Select all

update-desktop-database -v ~/.local/share/mime
..and restart the desktop.
same fixed my problem aswell :P though i just had to refresh the folder view, not restart gnome...

https://dylix.org/
Top
Excluvior
n00b
n00b
Posts: 10
Joined: Fri Jul 11, 2008 8:37 pm
Location: Belgium

  • Quote

Post by Excluvior » Sun Mar 08, 2009 10:17 pm

dylix wrote:
rlittle wrote:Worked for me to. That is to say:

(as root)

Code: Select all

update-mime-database -v /usr/share/mime
(as user)

Code: Select all

update-desktop-database -v ~/.local/share/mime
..and restart the desktop.
same fixed my problem aswell :P though i just had to refresh the folder view, not restart gnome...

Fixed my problem too :D
Top
gasparov
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 105
Joined: Thu Apr 13, 2006 4:42 pm

  • Quote

Post by gasparov » Wed Mar 11, 2009 5:27 pm

I don't know what exactly fixed my problem , what i do know is that after the two update commands I had to remove "./local/share/mime" to make it work. As sera said.
Top
Post Reply

18 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic