Describe the bug
In Nautilus I'm unable to browse special paths like mtp, smb, sftp etc. None of these protocols seems to be available.
According to the documentation, I just have to add
services.gvfs.enable = true;
But this doesn't seem to work. I'm using Sway as a window manager, started directly without a display manager.
To Reproduce
Steps to reproduce the behavior:
nautilus
and enable gvfs
nautilus
, click on Other locations
and try to open for example ssh://192.168.178.2
Expected behavior
Nautilus should be able to open gvfs volumes.
Additional context
My complete NixOS system configuration https://git.project-insanity.org/onny/nixos-lappy
Notify maintainers
@worldofpeace @lethalman @jtojnar @hedning
Metadata
these paths will be fetched (0.05 MiB download, 0.28 MiB unpacked):
/nix/store/hzrq5ccamfkwdkl9gqqsh3ryprzvs044-bash-interactive-4.4-p23-dev
copying path '/nix/store/hzrq5ccamfkwdkl9gqqsh3ryprzvs044-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
- system: `"x86_64-linux"`
- host os: `Linux 5.6.15, NixOS, 20.03.2059.05a32d8e771 (Markhor)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.3.5`
- channels(root): `"nixos-20.03.2059.05a32d8e771"`
- channels(onny): `"nixos-20.03.1422.1e90c46c2d9"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
Still no protocols available :(
@hedning @jtojnar @worldofpeace @dasj19
Is this 20.03 or unstable? I use unstable and I just made use of smb:// yesterday... all the other protocols were present also.
Is this 20.03 or unstable? I use unstable and I just made use of smb:// yesterday... all the other protocols were present also.
Thanks for the response. Here's the version information
onny@tuxzentrale ~> nix-channel --list
nixos https://nixos.org/channels/nixos-20.03
onny@tuxzentrale ~> nautilus --version
** (org.gnome.Nautilus:24448): WARNING **: 12:55:14.895: Error on getting connection: Failed to load SPARQL backend: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Tracker1 was not provided by any .service files
(org.gnome.Nautilus:24448): dbind-WARNING **: 12:55:14.930: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
GNOME nautilus 3.34.2
onny@tuxzentrale ~>
Thanks for providing additional info. I personally run on unstable and I am new in the gnome team.
But first things first.
Okay thanks! Not sure how to update, should I try the unstable channel?
Some more information about the GIO_EXTRA_MODULES variable:
<code>
onny@tuxzentrale ~> echo $GIO_EXTRA_MODULES
/nix/store/xy4bmni2icmrcjdrxjyxvv5msl7djpzv-dconf-0.34.0-lib/lib/gio/modules:/nix/store/xy4bmni2icmrcjdrxjyxvv5msl7djpzv-dconf-0.34.0-lib/lib/gio/modules
onny@tuxzentrale ~> ls -lahgs /nix/store/xy4bmni2icmrcjdrxjyxvv5msl7djpzv-dconf-0.34.0-lib/lib/gio/modules
total 84K
0 dr-xr-xr-x 1 root 68 Jan 1 1970 ./
0 dr-xr-xr-x 1 root 14 Jan 1 1970 ../
4.0K -r--r--r-- 1 root 39 Jan 1 1970 giomodule.cache
80K -r-xr-xr-x 1 root 80K Jan 1 1970 libdconfsettings.so*
Edit:
I think there should be more files in lib/gio/modules
folder. This is the content of this path in ArchLinux:
/usr/lib/gio/modules/
giomodule.cache libgiognomeproxy.so* libgiolibproxy.so* libgioremote-volume-monitor.so*
libdconfsettings.so* libgiognutls.so* libgioopenssl.so* libgvfsdbus.so*
// edit
Not sure if this will help but this is the content of the nautilus wrapper file /nix/store/hhrlrhfzd349wl3cw2rbg3lfrbz2zpic-system-path/bin/nautilus
:
#! /nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash -e
export GIO_EXTRA_MODULES='/nix/store/xy4bmni2icmrcjdrxjyxvv5msl7djpzv-dconf-0.34.0-lib/lib/gio/modules'${GIO_EXTRA_MODULES:+':'}$GIO_EXTRA_MODULES
export GIO_EXTRA_MODULES='/nix/store/yf8gq6c2gzp3dvcl8ww6cna8d5jpgxjz-glib-networking-2.62.3/lib/gio/modules'${GIO_EXTRA_MODULES:+':'}$GIO_EXTRA_MODULES
export GIO_EXTRA_MODULES='/nix/store/xy4bmni2icmrcjdrxjyxvv5msl7djpzv-dconf-0.34.0-lib/lib/gio/modules'${GIO_EXTRA_MODULES:+':'}$GIO_EXTRA_MODULES
export GIO_EXTRA_MODULES='/nix/store/yf8gq6c2gzp3dvcl8ww6cna8d5jpgxjz-glib-networking-2.62.3/lib/gio/modules'${GIO_EXTRA_MODULES:+':'}$GIO_EXTRA_MODULES
export GDK_PIXBUF_MODULE_FILE='/nix/store/2gqdk4jaci74zs27l791j7fgwbfzd63i-librsvg-2.46.4/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache'
export XDG_DATA_DIRS='/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/share:/nix/store/7cqnrbxmy8f402cga1fygwfma2ipm75g-adwaita-icon-theme-3.34.3/share:/nix/store/m3xlgsji0jvpa2kibz4c3m5lbnnxv6k5-hicolor-icon-theme-0.17/share:/nix/store/c95l48hfdh7yr8283b4azgvw3nsmgjvc-cups-2.3.3/share:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/share:/nix/store/7cqnrbxmy8f402cga1fygwfma2ipm75g-adwaita-icon-theme-3.34.3/share:/nix/store/m3xlgsji0jvpa2kibz4c3m5lbnnxv6k5-hicolor-icon-theme-0.17/share:/nix/store/c95l48hfdh7yr8283b4azgvw3nsmgjvc-cups-2.3.3/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS
export XDG_DATA_DIRS='/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/share/gsettings-schemas/gtk+3-3.24.13:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/share/gsettings-schemas/gsettings-desktop-schemas-3.34.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/share/gsettings-schemas/tracker-2.3.1:/nix/store/1hffg4n42l5lz762sajxjl9c9snikbv4-tracker-miners-2.3.1/share/gsettings-schemas/tracker-miners-2.3.1:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/share/gsettings-schemas/gtk+3-3.24.13:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/share/gsettings-schemas/gsettings-desktop-schemas-3.34.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/share/gsettings-schemas/tracker-2.3.1:/nix/store/1hffg4n42l5lz762sajxjl9c9snikbv4-tracker-miners-2.3.1/share/gsettings-schemas/tracker-miners-2.3.1:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/share/gsettings-schemas/gtk+3-3.24.13:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/share/gsettings-schemas/gsettings-desktop-schemas-3.34.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/share/gsettings-schemas/tracker-2.3.1:/nix/store/1hffg4n42l5lz762sajxjl9c9snikbv4-tracker-miners-2.3.1/share/gsettings-schemas/tracker-miners-2.3.1:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/share/gsettings-schemas/gtk+3-3.24.13:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/share/gsettings-schemas/gsettings-desktop-schemas-3.34.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/share/gsettings-schemas/tracker-2.3.1:/nix/store/1hffg4n42l5lz762sajxjl9c9snikbv4-tracker-miners-2.3.1/share/gsettings-schemas/tracker-miners-2.3.1:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/share/gsettings-schemas/gtk+3-3.24.13:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/share/gsettings-schemas/gsettings-desktop-schemas-3.34.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/share/gsettings-schemas/tracker-2.3.1:/nix/store/1hffg4n42l5lz762sajxjl9c9snikbv4-tracker-miners-2.3.1/share/gsettings-schemas/tracker-miners-2.3.1:/nix/store/74sxmljxv7jp9kmy62nnrjnz4bs8q3zh-nautilus-3.34.2/share/gsettings-schemas/nautilus-3.34.2:/nix/store/74sxmljxv7jp9kmy62nnrjnz4bs8q3zh-nautilus-3.34.2/share/gsettings-schemas/nautilus-3.34.2'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS
export XDG_DATA_DIRS='/nix/store/74sxmljxv7jp9kmy62nnrjnz4bs8q3zh-nautilus-3.34.2/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS
export GST_PLUGIN_SYSTEM_PATH_1_0='/nix/store/25nzfz0pvp5mynya5hbbbavibfpvpd9r-gstreamer-1.16.2/lib/gstreamer-1.0:/nix/store/nj489vjhihjs9rmh9g2s8sd6mqklbmb2-gst-plugins-base-1.16.2/lib/gstreamer-1.0:/nix/store/25nzfz0pvp5mynya5hbbbavibfpvpd9r-gstreamer-1.16.2/lib/gstreamer-1.0:/nix/store/nj489vjhihjs9rmh9g2s8sd6mqklbmb2-gst-plugins-base-1.16.2/lib/gstreamer-1.0'${GST_PLUGIN_SYSTEM_PATH_1_0:+':'}$GST_PLUGIN_SYSTEM_PATH_1_0
export GI_TYPELIB_PATH='/nix/store/065ycv2ghnq5jyx5hd47n36vr3cscgpk-gobject-introspection-1.62.0/lib/girepository-1.0:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/lib/girepository-1.0:/nix/store/2gqdk4jaci74zs27l791j7fgwbfzd63i-librsvg-2.46.4/lib/girepository-1.0:/nix/store/y3x1hwy5jgllzpl11hp5g2mwiwk3pmmi-gexiv2-0.12.0/lib/girepository-1.0:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/lib/girepository-1.0:/nix/store/1nmhrhcx0d7si4jv4jhq2pgnwhj1gmw8-gnome-desktop-3.34.4/lib/girepository-1.0:/nix/store/25nzfz0pvp5mynya5hbbbavibfpvpd9r-gstreamer-1.16.2/lib/girepository-1.0:/nix/store/nj489vjhihjs9rmh9g2s8sd6mqklbmb2-gst-plugins-base-1.16.2/lib/girepository-1.0:/nix/store/bisn0mlzxsgq85i8h43xcp8npgfvdl4a-atk-2.34.1/lib/girepository-1.0:/nix/store/xxl3rk2nmsys32kb4i1wzawprz6c3fg4-gdk-pixbuf-2.40.0/lib/girepository-1.0:/nix/store/525mpza3png42i89xyvjk834kmhljvmf-pango-1.44.7/lib/girepository-1.0:/nix/store/cdc2cj8zpz92i6bj2sr7zzzbv82ngma2-libnotify-0.7.8/lib/girepository-1.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/lib/girepository-1.0:/nix/store/5r5iw4m7dbsjp2c355zd7xvswq9w5i7r-gnome-autoar-0.2.4/lib/girepository-1.0:/nix/store/065ycv2ghnq5jyx5hd47n36vr3cscgpk-gobject-introspection-1.62.0/lib/girepository-1.0:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/lib/girepository-1.0:/nix/store/2gqdk4jaci74zs27l791j7fgwbfzd63i-librsvg-2.46.4/lib/girepository-1.0:/nix/store/y3x1hwy5jgllzpl11hp5g2mwiwk3pmmi-gexiv2-0.12.0/lib/girepository-1.0:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/lib/girepository-1.0:/nix/store/1nmhrhcx0d7si4jv4jhq2pgnwhj1gmw8-gnome-desktop-3.34.4/lib/girepository-1.0:/nix/store/25nzfz0pvp5mynya5hbbbavibfpvpd9r-gstreamer-1.16.2/lib/girepository-1.0:/nix/store/nj489vjhihjs9rmh9g2s8sd6mqklbmb2-gst-plugins-base-1.16.2/lib/girepository-1.0:/nix/store/bisn0mlzxsgq85i8h43xcp8npgfvdl4a-atk-2.34.1/lib/girepository-1.0:/nix/store/xxl3rk2nmsys32kb4i1wzawprz6c3fg4-gdk-pixbuf-2.40.0/lib/girepository-1.0:/nix/store/525mpza3png42i89xyvjk834kmhljvmf-pango-1.44.7/lib/girepository-1.0:/nix/store/cdc2cj8zpz92i6bj2sr7zzzbv82ngma2-libnotify-0.7.8/lib/girepository-1.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/lib/girepository-1.0:/nix/store/5r5iw4m7dbsjp2c355zd7xvswq9w5i7r-gnome-autoar-0.2.4/lib/girepository-1.0:/nix/store/065ycv2ghnq5jyx5hd47n36vr3cscgpk-gobject-introspection-1.62.0/lib/girepository-1.0:/nix/store/4y5ird78yicid80g95iq1hzmshb7xjv9-gtk+3-3.24.13/lib/girepository-1.0:/nix/store/2gqdk4jaci74zs27l791j7fgwbfzd63i-librsvg-2.46.4/lib/girepository-1.0:/nix/store/y3x1hwy5jgllzpl11hp5g2mwiwk3pmmi-gexiv2-0.12.0/lib/girepository-1.0:/nix/store/jxrngsp2832mjpdk0a7jhwrh7ky33db6-gsettings-desktop-schemas-3.34.0/lib/girepository-1.0:/nix/store/1nmhrhcx0d7si4jv4jhq2pgnwhj1gmw8-gnome-desktop-3.34.4/lib/girepository-1.0:/nix/store/25nzfz0pvp5mynya5hbbbavibfpvpd9r-gstreamer-1.16.2/lib/girepository-1.0:/nix/store/nj489vjhihjs9rmh9g2s8sd6mqklbmb2-gst-plugins-base-1.16.2/lib/girepository-1.0:/nix/store/bisn0mlzxsgq85i8h43xcp8npgfvdl4a-atk-2.34.1/lib/girepository-1.0:/nix/store/xxl3rk2nmsys32kb4i1wzawprz6c3fg4-gdk-pixbuf-2.40.0/lib/girepository-1.0:/nix/store/525mpza3png42i89xyvjk834kmhljvmf-pango-1.44.7/lib/girepository-1.0:/nix/store/cdc2cj8zpz92i6bj2sr7zzzbv82ngma2-libnotify-0.7.8/lib/girepository-1.0:/nix/store/9zhyng7mg9xxry91d1zzp17wpn9jvrj1-tracker-2.3.1/lib/girepository-1.0:/nix/store/5r5iw4m7dbsjp2c355zd7xvswq9w5i7r-gnome-autoar-0.2.4/lib/girepository-1.0'${GI_TYPELIB_PATH:+':'}$GI_TYPELIB_PATH
export XDG_DATA_DIRS='/nix/store/xxl3rk2nmsys32kb4i1wzawprz6c3fg4-gdk-pixbuf-2.40.0/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS
export XDG_DATA_DIRS='/nix/store/2gqdk4jaci74zs27l791j7fgwbfzd63i-librsvg-2.46.4/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS
export XDG_DATA_DIRS='/nix/store/gfxr6ywr7kl9ibyglcla2b8gxy8dsprk-shared-mime-info-1.13.1/share'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS
exec -a "$0" "/nix/store/74sxmljxv7jp9kmy62nnrjnz4bs8q3zh-nautilus-3.34.2/bin/.nautilus-wrapped" "$@"
Edit:
There seems to be no gvfs service running, don't know if this is normal:
onny@tuxzentrale ~> pgrep gvfs
onny@tuxzentrale ~>
Gio also has issues mounting a share:
onny@tuxzentrale ~> gio mount smb://192.168.122.101/
gio: smb://192.168.122.101/: volume doesn鈥檛 implement mount
No need to try unstable yet... I'll jump on 20.03 branch and make an update for you.
So I opened a PR for you. https://github.com/NixOS/nixpkgs/pull/93056
Can you help with testing?
Clone this repository in a folder of your choice. Then Run the automatic reviews:
[email protected]:NixOS/nixpkgs.git
git checkout 20.03
nix-shell -p nixpkgs-review --run "nixpkgs-review pr 93056"
And see if it builds. Thanks
Wow nice, this looks much more better now :)
[nix-shell:~/.cache/nixpkgs-review/pr-93056-1]$ pwd
/home/onny/.cache/nixpkgs-review/pr-93056-1
[nix-shell:~/.cache/nixpkgs-review/pr-93056-1]$ nautilus --version
GNOME nautilus 3.34.3
Hope this get merged quite soon :)
As discussion moved here: https://github.com/NixOS/nixpkgs/pull/93056
The gnome guys have a huge gnome-34 update waiting around the corner so that will make my pull request obsolete. (Because they are updating nautilus as well)
This PR will take over: https://github.com/NixOS/nixpkgs/pull/85974
I would not expect Nautilus update to fix this, see the changes for that release:
Major changes in 3.34.3:
- Revert icon emblem fixes in order to prevent performance issues (Ant贸nio Fernandes)
- Fix crashes often happening when searching (Ondrej Holy)
- Fix crashes after conflict dialog response (Ondrej Holy)
The reason it works is likely that gvfs module is added to GIO_EXTRA_MODULES
by the shell but not by the wrapper. We need to add it to the wrapper.
Just adding gvfs
to nautilus鈥檚 buildInputs
should fix it.
I would not expect Nautilus update to fix this, see the changes for that release:
Major changes in 3.34.3:
- Revert icon emblem fixes in order to prevent performance issues (Ant贸nio Fernandes)
- Fix crashes often happening when searching (Ondrej Holy)
- Fix crashes after conflict dialog response (Ondrej Holy)
The reason it works is likely that gvfs module is added to
GIO_EXTRA_MODULES
by the shell but not by the wrapper. We need to add it to the wrapper.
I can confirm this that when I use the contents of the GIO_EXTRA_MODULES variable used by the shell, Nautilus seems to work well even with the older version:
onny@tuxzentrale ~> nautilus --version
(org.gnome.Nautilus:13120): dbind-WARNING **: 20:20:15.138: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
GNOME nautilus 3.34.2
onny@tuxzentrale ~> env GIO_EXTRA_MODULES="/nix/store/7fnxbqf0mwj64549h4z2d9zbxsmb3ip6-gvfs-1.42.2/lib/gio/modules:/nix/store/xy4bmni2icmrcjdrxjyxvv5msl7djpzv-dconf-0.34.0-lib/lib/gio/modules" nautilus
:+1:
So hopefully gvfs gio modules would be added to GIO_EXTRA_MODULES
as soon gvfs
is part of Nautilus buildInputs
:)
As discussion moved here: #93056
The gnome guys have a huge gnome-34 update waiting around the corner so that will make my pull request obsolete. (Because they are updating nautilus as well)
This PR will take over: #85974
@dasj19 Yeah, we really should finish that gnome-34 update for 20.03. I believe that PR is entirely obsolete now because it wasn't merged. The main issue is it needed some build Q.A, and the fact that we don't have any automatic testing to just run the main applications makes it rather difficult. Perhaps we can setup a jobset gnome-20.03 so we can test updates for each release clearly.
@das-g Yeah, we really should finish that gnome-34 update for 20.03.
Did you mean to mention @dasj19 rather than me, @worldofpeace?
@das-g Yeah, we really should finish that gnome-34 update for 20.03.
Did you mean to mention @dasj19 rather than me, @worldofpeace?
I did, sorry for the mention. Your @'s are very close, especially when it comes to autosuggestion :grinning:
Successfully mounted a davs://
share from nautilus on 20.03 with https://github.com/NixOS/nixpkgs/pull/93056 merged, so this can be closed.
Issue is still present for me. I'm using nixos-unstable
with nautilus
3.36.3 and all protocols are missing :(
@onny can you try again by running $(nix-build nixos/tests/gnome3.nix -A driver)/bin/nixos-run-vms
from a checkout of latest master?
I tried with both master
and the release-20.03
branch. Opened Nautilus, went to "Other Locations".
The question mark shows davs://
URLs (and others), and I could successfully connect and list files from there.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/set-your-environment-variables-kids/10018/1
I'm having the same problem with 3.36.3 on NixOS 20.09.
$ sudo nix-channel --list 馃槺 馃槺
nixos https://nixos.org/channels/nixos-20.09
The discourse link one post above does not apply to me, since I use the default shell for my user.
Most helpful comment
I did, sorry for the mention. Your @'s are very close, especially when it comes to autosuggestion :grinning: