Bug 701614

Summary: Gnome Mime type associations to applications are broken if exo package (Xfce) is installed
Product: [Fedora] Fedora Reporter: Michal Ambroz <rebus>
Component: gvfsAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: 15CC: alexl, bnocera, tbzatek, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-03 11:34:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot.png none

Description Michal Ambroz 2011-05-03 11:11:31 UTC
Created attachment 496489 [details]
screenshot.png

Description of problem:
There is some race condition for Gnome Desktop Environment triggered by installing package of exo file manager (part of Xfce desktop environment), which causes Gnome desktop environment to process MIME associations in a wrong way. 

#xdg-mime query filetype screenshot.png
image/png

#xdg-mime query default image/png
gnome-eog.desktop

So you would guess that eog will be executed to process a file, but instead the nautilus is executed and ends with attached error.



Version-Release number of selected component (if applicable):
gvfs-1.8.1-1.fc15.i686
exo-0.6.0-5.fc15.i686
nautilus-3.0.1-1.fc15.i686


How reproducible:
100%

Steps to Reproduce:
1. Have installed Gnome and Xfce desktop environment
2. Run GNOME session (Please note I am using gnome and not Xfce)
3. Trigger mime action from commandline:
#xdg-open /tmp/screenshot.png

  
Actual results:
#xdg-open /tmp/screenshot.png
triggers
#gvfs-open /tmp/screenshot.png 
which triggers
#exo-open --launch FileManager /tmp/screenshot.png 
which triggers
#nautilus /tmp/screenshot.png
and ends with error message:
Could not display "/tmp/screenshot.png". The location is not a folder.


Expected results:
In my opinion when having Gnome session the behaviour should not be affected by having installed any other desktop environment. These things should be independent. Running gnome - it should take gnome mime type settiongs, running Xfce it shuold take Xfce mime type settings. 

Additional info:

Comment 1 Michal Ambroz 2011-05-03 11:20:08 UTC
I forgot to mention that after uninstalling the exo package things work as expected in Gnome:
#sudo rpm -e exo --nodeps
#xdg-open /tmp/screenshot.png 
triggers
#gvfs-open /tmp/screenshot.png
which opens file using /usr/share/applications/gnome-eog.desktop as expected

Problem is that obviously this will break the Xfce functionality on the other hand.

Best regards
Michal Ambroz

Comment 2 Tomáš Bžatek 2011-05-03 11:34:25 UTC

*** This bug has been marked as a duplicate of bug 674321 ***