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 614239 - Create a .desktop file instead a symlink when DND a directory
Create a .desktop file instead a symlink when DND a directory
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: Desktop
2.28.x
Other Linux
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks: 652944
 
 
Reported: 2010-03-29 11:11 UTC by Mike Massonnet
Modified: 2013-04-23 14:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Massonnet 2010-03-29 11:11:36 UTC
Currently it is possible to DND a directory to the desktop and create either a copy or a symlink or move completely the directory, by pressing the CTRL/Shift keys.

I had like to propose a change when DND a directory as a symlink. A symlink is not ideal, when you open the directory it will open at ~/.local/desktop/the-symlink and creates thumbnails for “this” particular directory. If you then browse from a Nautilus browser to ~/the-real-directory it will then re-generate the thumbnails for this ”other” directory.

So instead of creating symlinks for directories on the desktop, one can generate .desktop files instead.

Here is a snippet:

#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=xdg-open file:///home/mike/Downloads
Name=Downloads
Icon=gtk-directory

I tried creating a desktop icon with Type=Directory without success, it looks like those don't work at all and I'm not exactly sure where and how they are useful. Just wanted to mention them.
Comment 1 António Fernandes 2013-04-23 14:39:54 UTC
(In reply to comment #0)
> [...]A symlink is
> not ideal, when you open the directory it will open at
> ~/.local/desktop/the-symlink[...]

I've tested this on nautilus 3.6. It opens the "real" target path, not the symlink path. They way I understand it, this makes the *.desktop file proposal obsolete.

Please feel free to reopen this bug if the problem still occurs with a newer version of GNOME.

> [...] and creates thumbnails for “this” particular
> directory. If you then browse from a Nautilus browser to ~/the-real-directory
> it will then re-generate the thumbnails for this ”other” directory.

This is covered by bug 337759