After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702301 - Symlinks are being expanded
Symlinks are being expanded
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Navigation
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 720463 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-06-14 23:06 UTC by Osmo Salomaa
Modified: 2018-03-13 21:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Osmo Salomaa 2013-06-14 23:06:12 UTC
If I have a symlink /home/osmo/foo that points to /mnt/something/foo and I use nautilus to browse from my home folder, the path visible on the path bar is suddenly expanded to the target path. This makes navigation difficult since using Ctrl+Up one ends up in an unexpected and often unuseful place. Ctrl+Left navigates to the correct place, but nautilus forgets which folder was selected.

In 3.6 and earlier versions as far back as I remember symlinks have not been expanded. The whole point of symlinks often is to hide some complexity, e.g. files split across multiple physical disks.

There's a similar bug report from 11 years back when a similar change was made, but then reverted.
https://bugzilla.gnome.org/show_bug.cgi?id=73937

Looking through the git log the only possibly relevant entry I found was mime-actions:
https://git.gnome.org/browse/nautilus/commit/?id=fe1965f2cafc4616caaea0ae048bf1ff5c8975f5
Comment 1 Osmo Salomaa 2013-06-18 17:13:42 UTC
(In reply to comment #0)
> Looking through the git log the only possibly relevant entry I found was
> mime-actions:
> https://git.gnome.org/browse/nautilus/commit/?id=fe1965f2cafc4616caaea0ae048bf1ff5c8975f5

This is the problem. I recompiled nautilus with this commit reverted and symlinks work as expected again.
Comment 2 xejahat751 2013-09-26 17:54:18 UTC
Why is this still unconfirmed? It's clearly a bug (for some really annoying) and the source of the problem has even been posted.
Launchpad link: https://bugs.launchpad.net/ubuntu/+bug/1184720
Comment 3 ftack 2013-12-17 08:07:14 UTC
I think we have to confirm it ourselves. This bug indeed breaks the powerfull linux symbolic links, and degrades them to Windows 95 style shortcuts.
Comment 4 d3968 2014-01-20 23:22:01 UTC
This bug occurs also in versions
Comment 5 marc.cornella 2014-02-26 11:13:28 UTC
This is still unresolved. The offending bug that prompted the change is https://bugzilla.gnome.org/show_bug.cgi?id=686465, which shouldn't be described as a bug in nautilus, given that it is and should be Linux default behaviour. Symlinks are not Windows shortcuts, we have .desktop files for that.

Comment on that issue if you think the change should be reverted.
Cheers
Comment 6 marc.cornella 2014-02-26 12:32:29 UTC
I too can confirm that reverting that commit fixes the issue...

For those who want to confirm the bug by reverting said commit, here's what I did on debian testing (jessie):

# clone and fix nautilus 3.8
git clone git://git.gnome.org/nautilus
cd nautilus
git checkout gnome-3-8
git revert fe1965f2

# install dependencies (may vary on other systems -> run ./autogen.sh and install the packages that are not found)
sudo apt-get install gnome-common libglib2.0-dev gtk-doc-tools libexif-dev libexempi-dev libgtk-3-dev libgail-3-dev libgnome-desktop-3-dev libxml2-dev libx11-dev libnotify-dev gsettings-desktop-schemas{,-dev}

# compile and install in local folder (can be anywhere you like)
mkdir $HOME/local
./autogen.sh --prefix=$HOME/local
make && make install

# run nautilus
$HOME/local/bin/nautilus

# test to see if it's fixed

Hope I can help with that
Cheers
Comment 7 lcid-fire 2014-03-05 18:11:08 UTC
Thanks. Is there a ppa with a fixed nautilus yet?
Comment 8 eatnut 2014-03-28 15:47:14 UTC
Please revert. The current behavior is so annoying.
Comment 9 gustavo 2014-04-02 03:28:28 UTC
This behaviour breaks completely the user view of the file system, is very important to be fixed. For example, "my_files/docs" leads to "/mnt/HD-01/users/teachers/name/docs", something completely absurd. It also breaks our confidence, because is a very deep change without any previous warning or option.
I really ask you, please, to fix as soon as possible.
Comment 10 John 2014-04-07 21:15:26 UTC
I have a similar configuration as gustavo. My home directory is full of symlinks to various cloud providers. This change in behavior is completely against the linux symlink behavior.

I second/third, ++, etc. any efforts to revert to the original behavior (and linux standard) of not dereferencing symlinks.
Comment 11 daryl5 2014-04-09 16:44:03 UTC
I too would like to see this reverted to the old behaviour. Symbolic links should be transparent.
Comment 12 Colomban Wendling 2014-05-12 22:03:37 UTC
I strongly support reverting this, it makes Nautilus unusable for me (and I
temporarily switched to another less integrated solution, mostly because of
this)

This also breaks behavior of some applications, and only removes flexibility
without adding any feature: while applications wanting to dereference links
were able to do it, now applications that don't want to cannot do anything
since they don't even know what URI the user actually wanted to open.

For example, EOG allows to browse the images in the directory containing the
opened pictures (go to next/prev image in the directory).  Since this change,
when opening an symlink from Nautilus, EOG browses the directory containing the
physical file, not the one containing the symlink.  This is an highly
unexpected and unwanted behavior, and is extremely annoying since it makes many
symlinks useless.  And as noted above, EOG could not do *anything* about this,
because it has absolutely no way to know what URI the user actually wanted to
open.


Finally, even if #686465 was considered as a bug (I don't think it is one, but
apparently some people do) it has little to do with Nautilus.  GEdit can "fix"
it if wanted, without breaking other apps in the process.
Comment 13 Cosimo Cecchi 2014-05-12 22:10:15 UTC
I reverted this now in gnome-3-12 and master. Sorry for the confusion.
Comment 14 Colomban Wendling 2014-05-12 22:25:09 UTC
I just tested master and it is indeed fixed, thank you very much!
Comment 15 Sebastien Bacher 2014-05-13 11:33:13 UTC
@Cosimo: maybe it would make sense to revert in 3.10 as well (we are at least going to backport that commit to the 3.10 serie for Ubuntu)
Comment 16 Cosimo Cecchi 2014-05-13 16:38:45 UTC
Good idea - I reverted it in 3.10 as well now.
Comment 17 Sebastien Bacher 2014-05-13 16:45:25 UTC
thanks
Comment 18 marc.cornella 2014-05-13 16:54:21 UTC
(In reply to comment #16)
> Good idea - I reverted it in 3.10 as well now.

Version 3.8 is also affected (this report was specifically for 3.8.x), can you backport as well?
Comment 19 Cosimo Cecchi 2014-05-13 17:01:18 UTC
Done.
Comment 20 marc.cornella 2014-05-13 17:15:02 UTC
Thanks man
Comment 21 António Fernandes 2018-03-13 21:45:32 UTC
*** Bug 720463 has been marked as a duplicate of this bug. ***