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   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-03 07:34:25 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
screenshot.png none

Description Michal Ambroz 2011-05-03 07:11:31 EDT
Created attachment 496489 [details]

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

#xdg-mime query default image/png

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):

How reproducible:

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
#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 07:20:08 EDT
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 
#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 07:34:25 EDT

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