Ubuntu – How to drag a folder to the launcher from Nautilus

directorylauncherunity

How can I add a folder to the launcher for quick access to it. In this particular case I wish to drag it to the launcher.

Best Answer

  1. First create a desktop configuration file: gedit ~/.local/share/applications/folder-shortcut.desktop
  2. Copy and paste the following content to launch nautilus (the file explorer) with the specified folder

    [Desktop Entry]
    Name=Home Folder
    Comment=Open YOURFOLDER
    Exec=nautilus YOURFOLDER
    Icon=folder
    Terminal=false
    StartupNotify=true
    Type=Application
    OnlyShowIn=GNOME;Unity;
    Categories=GNOME;GTK;Core;
    X-GNOME-Bugzilla-Bugzilla=GNOME
    X-GNOME-Bugzilla-Product=nautilus
    X-GNOME-Bugzilla-Component=general
    X-GNOME-Bugzilla-Version=3.0.0
    X-Ubuntu-Gettext-Domain=nautilus
    Actions=Window;
    NoDisplay=true
    
    [Desktop Action Window]
    Name=Open YOURFOLDER
    Exec=nautilus YOURFOLDER
    OnlyShowIn=Unity;
    

    Replace "YOURFOLDER" with the path to your folder

  3. Now navigate to this file graphically from nautilus and drag it to your launcher