[xfce] nautilus don't open files if set as default file manager

Bug #1778069 reported by Leonardo Müller
72
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Exo
Fix Released
Medium
exo (Ubuntu)
Fix Released
Undecided
Unassigned
nautilus (Debian)
New
Unknown
nautilus (Ubuntu)
Invalid
Low
Unassigned
xubuntu-default-settings (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If Nautilus is set as the preferred file manager with exo-preferred-applications, it no longer opens files. It opens only directories, .desktop files and executable files. Trying to open a file, be using Enter or with double mouse click, as a text file or a video makes Nautilus window blink for a instant and nothing happens. To be able to open the files, it's needed to choose to open with another application and then choose the application.

Once Nautilus is unset as the default file manager (Thunar is chosen, for example), it starts to work fine again, opening files properly.

Nautilus' Debian Sid version do not have this problem.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nautilus 1:3.26.3-0ubuntu4
Uname: Linux 4.17.2-041702-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CurrentDesktop: XFCE
Date: Thu Jun 21 10:55:41 2018
InstallationDate: Installed on 2017-06-13 (372 days ago)
InstallationMedia: Xubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: nautilus
UpgradeStatus: Upgraded to bionic on 2017-10-20 (244 days ago)
usr_lib_nautilus: dropbox 2015.10.28

Revision history for this message
Leonardo Müller (leozinho29-eu) wrote :
summary: - nautilus don't open files is set as default file manager
+ nautilus don't open files if set as default file manager
Changed in nautilus (Ubuntu):
importance: Undecided → Low
summary: - nautilus don't open files if set as default file manager
+ [xfce] nautilus don't open files if set as default file manager
Revision history for this message
Lou (lou-gregory42) wrote :

Happening for me too. Should be a higher priority than "low" IMHO

Revision history for this message
Steve Beckett (sbeckett31) wrote :

this effects a lot of users so please can you push the priority higher.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Changed in nautilus (Debian):
status: Unknown → New
Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

I affects me too. Hoping that priority is risen.

Revision history for this message
Mike (solovey-0408) wrote :

Have the same problem. Hope will be fixed soon.

Revision history for this message
gustavo sansone (gusans) wrote :

I have the same problem. tested on several fresh installs of Xubuntu 17.10 and Xubuntu 18.04.

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

You can fix this issue by removing the line "x-scheme-handler/file=exo-file-manager.desktop" from the following files:

/usr/share/xubuntu/applications/defaults.list (provided by Xubuntu)
~/.config/mimeapps.list (user overrides)
~/.local/share/applications/mimeapps.list (deprecated)

The entry should not be added anymore according to upstream Xfce [1], and it is the cause for the misbehavior according to the comments in the linked Debian report [2].

[1] https://git.xfce.org/xfce/exo/commit/?id=b74caf97642ae2bf00a7754a5fb193f695b6f3d4
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874003#75

Changed in nautilus (Ubuntu):
status: Confirmed → Invalid
Changed in xubuntu-default-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
ldmpub (ldmpub) wrote :

Thanks Theo => your tip fix it for me.

Revision history for this message
CarbonPepper (carbonpepper) wrote :

XFCE 18.04, nautilus was working fine. Started to see this behaviour recently. Possibly due to adding nautilus-extension-gnome-terminal.

Commenting out the line:
x-scheme-handler/file=exo-file-manager.desktop

in

/usr/share/xubuntu/applications/defaults.list (provided by Xubuntu)

Worked immediately when nautilus restarted.

Revision history for this message
In , Luke-hutchison (luke-hutchison) wrote :

Around Fedora 27, Nautilus stopped being able to open files with double click. It took me a very long time to figure out what was going on, but it turns out it was this bug:

[Fedora bug]: https://bugzilla.redhat.com/show_bug.cgi?id=674321
[Ubuntu bug]: https://bugs.launchpad.net/ubuntu/+source/exo/+bug/956255

I had to remove the following entries from ~/.local/share/applications/mimeapps.list , in the "[Added Associations]" section:

x-scheme-handler/http=exo-web-browser.desktop
x-scheme-handler/https=exo-web-browser.desktop
x-scheme-handler/file=exo-file-manager.desktop
x-scheme-handler/trash=exo-file-manager.desktop
x-scheme-handler/mailto=exo-mail-reader.desktop;

According to the Ubuntu bug, the core problem was fixed in this commit:

https://git.xfce.org/xfce/exo/commit/?id=b74caf97642ae2bf00a7754a5fb193f695b6f3d4

However, one commenter on the Fedora bug pointed out that "exo-0.6.2-3.fc16 is still taking the mime types from the X-XFCE-MimeType key and adding them to the [Added Associations] section of ~/.local/share/applications/mimeapps.list". This was still happening on a later version of exo (I don't know which version exactly, but maybe 0.10.x, since Nautilus broke for me around Fedora 27).

There are a few things that need to be fixed:

(1) exo needs to stop inserting these entries in mimeapps.list , if it is still inserting them

(2) exo needs to remove these entries from mimeapps.list, if they are found there, so that upgrading exo is enough to fix a broken system.

(3) One commenter on the Fedora bug pointed out that "I only noticed because some part of KDE was complaining about some lists in mimeapps.list not ending with ';' " -- exo needs to add a trailing ';' if it does need to add (corrected) lines to mimeapps.list.

Changed in exo:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Sean Davis (bluesabre) wrote :
Changed in xubuntu-default-settings (Ubuntu):
status: Confirmed → Triaged
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xubuntu-default-settings - 19.04

---------------
xubuntu-default-settings (19.04) disco; urgency=medium

  * Add Terminal (F4) and Find (Primary+Shift+F) shortcuts to Thunar (LP: #1793395)
    - etc/xdg/xdg-xubuntu/Thunar/accels.scm
    - etc/xdg/xdg-xubuntu/Thunar/uca.xml.in
  * debian/xubuntu-default-settings.gsettings-override:
    - Set GNOME/GTK 3 dconf keys for fonts (LP: #1769774)
  * etc/xdg/xdg-xubuntu/autostart/xfce4-tips-autostart.desktop
    - Removed, obsolete (LP: #1805005)
  * etc/xdg/xdg-xubuntu/Thunar/uca.xml.in:
    - Enable startup-notify in Thunar's uca.xml (LP: #1794118)
  * etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml:
    - Add shortcut for xfce4-screenshooter region capture (Shift+Print) (LP: #1812234)
  * etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml:
    - Set default inactivity mode to Suspend on AC and battery (LP: #1768038)
  * etc/xdg/xdg-xubuntu/xfce4/xfconf/xfce-perchannel-xml/xfprint.xml
    - Removed, obsolete (LP: #1805007)
  * usr/share/xubuntu/applications/defaults.list:
    - Replace invalid macroEnabled mimetypes (LP: #1802582)
    - Remove invalid x-scheme-handler/file handler (LP: #1778069)

 -- Sean Davis <email address hidden> Mon, 28 Jan 2019 22:44:14 -0500

Changed in xubuntu-default-settings (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Alex Mandel (wildintellect) wrote :

Just adding a note that this can also happen in Gnome on a system without XFCE.

Commenting out:
x-scheme-handler/file=exo-file-manager.desktop
In the file:
~/.local/share/applications/mimeapps.list

Like the Fedora note above worked. Not sure if a new ticket is needed to address the but outside of Xubuntu.

Ubuntu 18.04, happened after upgrade from 16.04

Revision history for this message
Theo Linkspfeifer (lastonestanding) wrote :

I assume that adding the exo package to the Affects list should do. The upstream report has already been linked.

Changed in exo (Ubuntu):
status: New → Confirmed
Revision history for this message
Dante Demian Leoncini (dante-leoncini) wrote :

Tengo el mismo problema en Xubuntu.
I have the same problem in xubuntu.

Revision history for this message
In , Bluesabre-1 (bluesabre-1) wrote :

Resolved with the following commits:

https://git.xfce.org/xfce/exo/commit/?id=404a7ef73246b73cb4cd2a4ab8cc10e1a02d6b74
Always terminates the mimetype associations with ";"

https://git.xfce.org/xfce/exo/commit/?id=48e12f1d5f31e576f7017c50785032ef6d22cfd1
Removes bad entries that should no longer be used.

https://git.xfce.org/xfce/exo/commit/?id=8bc59ad1c48df132e917337bd08211be58af5bb1
Possibly related, this synchronizes the preferences with gio-mime.

Will be available with Exo 0.12.6, release shortly.

Changed in exo:
status: Confirmed → Fix Released
Revision history for this message
CarbonPepper (carbonpepper) wrote :

status: Fix Committed → Fix Released for 19.04. Good, but please also release for 18.04 as it is LTS.

Revision history for this message
Marco Lopilato (marcolo) wrote :

Will the fix be released for 18.04 also? Thx

Revision history for this message
iyilmaz (yesilveyaprak) wrote :

Theo thanks .fixed

Revision history for this message
Sean Davis (bluesabre) wrote :

Xubuntu 18.04 is no longer supported. Marking this ticket resolved for 20.04+.

Changed in exo (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.