Bug#874003: Also affected on uptodate sid
On Tue, Feb 27, 2018 at 12:49:41AM +0200, Mikko Rapeli wrote: > Testing changes to desktop files shows that exo-file-manager.desktop > is to blame for this behavior. It does correctly set OnlyShowIn=XFCE; so > I don't get why it gets used in a Gnome session: > > $ cat /usr/share/applications/exo-file-manager.desktop > [Desktop Entry] > Version=1.0 > Type=Application > Exec=exo-open --launch FileManager %u > Icon=system-file-manager > StartupNotify=true > Terminal=false > Categories=Utility;X-XFCE;X-Xfce-Toplevel; > OnlyShowIn=XFCE; > X-XFCE-MimeType=inode/directory;x-scheme-handler/trash; > Name=File Manager > ... > > But moving this file away from /usr/share/applications > fixes external application starting from nautilus: > > # mv /usr/share/applications/exo-file-manager.desktop /root/ This isn't needed after all. I traced the likely root cause on my Debian sid installation to ~/.local/share/applications/mimeapps.list entry: [Added Associations] ... x-scheme-handler/file=exo-file-manager.desktop Commenting out this line fixes the issues for me. I was previously using Xfce and switched to Gnome so these entries might be really old. I still don't get what made this break few days ago though. -Mikko
Bug#874003: Also affected on uptodate sid
On Sun, Feb 25, 2018 at 02:35:28PM -0500, Jeremy Bicha wrote: > I suggest looking into what xdg-utils does. Looks like xdg-utils, or at least xdg-open is not the one to blame since it is calling gio open: $ sh -x $( which xdg-open) video.mp4 + check_common_commands video.mp4 + [ 1 -gt 0 ] + parm=video.mp4 + shift + [ 0 -gt 0 ] + [ -z ] + unset XDG_UTILS_DEBUG_LEVEL + [ 0 -lt 1 ] + xdg_redirect_output= > /dev/null 2> /dev/null + [ xvideo.mp4 != x ] + url= + [ 1 -gt 0 ] + parm=video.mp4 + shift + [ -n ] + url=video.mp4 + [ 0 -gt 0 ] + [ -z video.mp4 ] + detectDE + unset GREP_OPTIONS + [ -n GNOME ] + DE=gnome + [ xgnome = x ] + [ xgnome = x ] + [ xgnome = x ] + [ xgnome = xgnome ] + which gnome-default-applications-properties + DE=gnome3 + [ -f /run/user/1000/flatpak-info ] + [ xgnome3 = x ] + DEBUG 2 Selected DE gnome3 + [ -z ] + return 0 + open_gnome3 video.mp4 + gio help open + gio open video.mp4 + [ 0 -eq 0 ] + exit_success + [ 0 -gt 0 ] + exit 0 ** (exo-helper-1:20332): WARNING **: Could not open X display Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. My mime setup for video files is mplayer and that seems to correctly there: $ xdg-mime query default video/mp4 userapp-mplayer-9GFM9U.desktop Testing changes to desktop files shows that exo-file-manager.desktop is to blame for this behavior. It does correctly set OnlyShowIn=XFCE; so I don't get why it gets used in a Gnome session: $ cat /usr/share/applications/exo-file-manager.desktop [Desktop Entry] Version=1.0 Type=Application Exec=exo-open --launch FileManager %u Icon=system-file-manager StartupNotify=true Terminal=false Categories=Utility;X-XFCE;X-Xfce-Toplevel; OnlyShowIn=XFCE; X-XFCE-MimeType=inode/directory;x-scheme-handler/trash; Name=File Manager ... But moving this file away from /usr/share/applications fixes external application starting from nautilus: # mv /usr/share/applications/exo-file-manager.desktop /root/ -Mikko
Bug#874003: Also affected on uptodate sid
On Sun, Feb 25, 2018 at 2:25 PM, Mikko Rapeli wrote: > ** (exo-helper-1:4657): WARNING **: Could not open X display > Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. > > After removing exo-utils package nautilus can open files again with external > applications. So 'apt-get remove exo-utils' is the best workaround thus far. I suggest looking into what xdg-utils does. Thanks, Jeremy Bicha
Bug#874003: Also affected on uptodate sid
On Sun, Feb 25, 2018 at 08:33:44PM +0200, Mikko Rapeli wrote: > When opening files from nautilus it complains > > "Failed to execute default File Manager. > Input/Output error" strace showed to me that nautilus calls gio which for some reason ends up calling exo-open from Xfce desktop which fails. This has possibly something to do with Gnome 3 running with wayland and Xfce runs under X11. execve("/usr/bin/gio", ["gio", "open", "video.mp4"], 0x7ffd8d0aff40 /* 45 var s */) = 0 ... openat(AT_FDCWD, "/usr/share/applications/exo-file-manager.desktop", O_RDONLY) = 8 ... ** (exo-helper-1:4657): WARNING **: Could not open X display Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. After removing exo-utils package nautilus can open files again with external applications. So 'apt-get remove exo-utils' is the best workaround thus far. Maybe exo-utils from Xfce is hijacking something from Gnome desktop... -Mikko
Bug#874003: Also affected on uptodate sid
When opening files from nautilus it complains "Failed to execute default File Manager. Input/Output error" As mentioned here, opening files with "Open With Other Application" works. This started in for me yesterday after applying updates. I did not change anything in gnome configuration. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.15.5+ (SMP w/4 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages nautilus depends on: ii desktop-file-utils 0.23-2 ii gsettings-desktop-schemas 3.27.90-1 ii gvfs 1.34.1-2 ii libatk1.0-02.26.1-3 ii libc6 2.26-6 ii libcairo-gobject2 1.15.10-1 ii libcairo2 1.15.10-1 ii libexempi3 2.4.4-1 ii libexif12 0.6.21-4 ii libgail-3-03.22.28-1 ii libgdk-pixbuf2.0-0 2.36.11-1 ii libglib2.0-0 2.54.3-2 ii libglib2.0-data2.54.3-2 ii libgnome-autoar-0-00.2.2-3 ii libgnome-desktop-3-12 3.26.2-6 ii libgtk-3-0 3.22.28-1 ii libnautilus-extension1a3.26.2-2 ii libpango-1.0-0 1.40.14-1 ii libpangocairo-1.0-01.40.14-1 ii libselinux12.7-2+b1 ii libtracker-sparql-2.0-02.0.3-1 ii libx11-6 2:1.6.4-3 ii nautilus-data 3.26.2-2 ii shared-mime-info 1.9-2 Versions of packages nautilus recommends: ii gnome-sushi 3.24.0-3 ii gvfs-backends1.34.1-2 ii librsvg2-common 2.40.20-2 Versions of packages nautilus suggests: ii eog 3.26.2-3 ii evince [pdf-viewer] 3.26.0-3 ii nautilus-extension-brasero 3.12.2-4 ii nautilus-sendto 3.8.6-2 ii totem 3.26.0-3 ii tracker 2.0.3-1 ii vlc [mp3-decoder] 3.0.0-1 ii xdg-user-dirs 0.16-1