File associations broken after installing wine

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

File associations broken after installing wine

Post by witek »

I installed wine from Salix repo and I notice that .doc files are now handled by wine`s notepad and PNGs and JPGs are handled by winecore.exe. Hmm.... I`m not sure when that happened as I can remember jpg associated with Okular after KDE was installed. I`m not even sure if that happened after wine installation or maybe I messed up something

EDIT:
I fixed this according to Gapan`s advice from another thread to create file /usr/share/applications/defaults.list containing:

Code: Select all

image/png=viewnior.desktop
image/jpeg=viewnior.desktop
image/gif=viewnior.desktop
image/tiff=viewnior.desktop
image/x-wmf=viewnior.desktop
Last edited by witek on 23. Nov 2010, 22:13, edited 1 time in total.
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: File associations broken after installing wine

Post by djemos »

This is b/c of wine. Wine did this. So the first time you open a txt file or graphic associated with kwrite and okular.
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: File associations broken after installing wine

Post by gapan »

Yes, it was caused by wine. Wine seems to have all these filetypes associated with it. Perhaps we should remove them.
Image
Image
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: File associations broken after installing wine

Post by zAchAry »

How to set GPicView to default image viewer:

Code: Select all

xdg-mime default gpicview.desktop `grep 'MimeType=' /usr/share/applications/gpicview.desktop | sed -e 's/.*=//' -e 's/;/ /g'`
Note: xdg-utils is needed here. It's a tool released by Portland project of Freedesktop.org. Most modern Linux distros have this tool installed by default.
http://lxde.sourceforge.net/gpicview/
http://wiki.lxde.org/en/GPicView
Image
Help to make Slackware easier Donate to Salix
User avatar
witek
Posts: 233
Joined: 16. Nov 2009, 13:41
Location: Poland.Łódź

Re: File associations broken after installing wine

Post by witek »

gapan wrote:Yes, it was caused by wine. Wine seems to have all these filetypes associated with it. Perhaps we should remove them.
There seems to be a whole bunch of wine-extension-blabla.desktop in ~/.local/share/applications/ . I guess these files are responsible for this insane behaviour - this should be changed in future releases. I`m setting up a small network with several computers with Salix and my opinion is: the distro is near perfection except this insane file associations I mentioned here and elswhere (pdf, ps)
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: File associations broken after installing wine

Post by djemos »

Deleting all these wine-extension-blabla.desktop in ~/.local/share/applications/ solved the problem.
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: File associations broken after installing wine

Post by pwatk »

I haven't needed to use wine for years but I would suggest removing all the file type/mime type associations except the ones for Windows .exe binaries. I can't see anyone wanting to explicitly use wine for anything else!
Image
User avatar
Duncan_Idaho
Posts: 216
Joined: 19. Sep 2009, 01:43
Location: Sietch Tabr, Planet Arrakis

Re: File associations broken after installing wine

Post by Duncan_Idaho »

pwatk wrote:I haven't needed to use wine for years but I would suggest removing all the file type/mime type associations except the ones for Windows .exe binaries. I can't see anyone wanting to explicitly use wine for anything else!
I agree with you
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: File associations broken after installing wine

Post by JRD »

I agree too
Image
christian
Posts: 26
Joined: 16. Sep 2009, 20:32

Re: File associations broken after installing wine

Post by christian »

Agree, I will fix this with the bugfix-Upgrade to wine 1.2.1 by removing the associations except the ones for .exe etc.
Image
Post Reply