GNOME Bugzilla – Bug 614239
Create a .desktop file instead a symlink when DND a directory
Last modified: 2013-04-23 14:39:54 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.
(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