Results 1 to 9 of 9

Thread: Pinning files/folders to dock or desktop?

  1. #1
    Join Date
    Mar 2013
    Beans
    40

    Pinning files/folders to dock or desktop?

    There are spreadsheets, docs and a few other things I use often throughout each day.

    In Windows I could keep them fairly close, either by pinning them to the taskbar (dock), or on the desktop, reachable by a Desktop menu in the taskbar.
    Some of them were in a folder that was pinned to the taskbar or desktop.

    Is there a way to do this or something similar in Ubuntu?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Pinning files/folders to dock or desktop?

    Depends on the DE you are using. Some make it really easy. Gnome doesn't think you should be allowed to have a cluttered desktop, so it isn't possible in the stock version. There is at least 1 Gnome addon that will help make the "desktop" your own. I don't use Gnome, so I don't know what that addon is, but FOUND IT - "add to desktop" - #21 at this link https://itsfoss.com/best-gnome-extensions/

    Of course, if you aren't using Gnome as your DE, you'll need to check the manual for the DE you are using for how they recommend doing it.

    I don't use any DEs. I'm a pure WM-only user, so if I want something quickly available from a menu, I will manually add the menu item to my left-click menu that does what I want. That can be to open a data file or run a program on a different computer that opens a data file or almost anything else. For example, I like to have a Calculator handy and "galculator" is the name of the one I find acceptable. The menu entry in my ~/fvwm/config file for it is this:
    Code:
    +                       "&f. Galculator" Exec exec /usr/bin/firejail /usr/bin/galculator
    That probably isn't useful to you, since almost nobody here uses fvwm.

  3. #3
    Join Date
    Jan 2018
    Beans
    109

    Re: Pinning files/folders to dock or desktop?

    I run Ubuntu 22.04. I can move documents and folders from the Documents section of the Files app to the desktop by the usual drag and drop. I believe this is possible because Ubuntu automatically installs the Desktop Icons NG Gnome extension. Mind you it actually moves them. It doesn't make a second copy.

    Just for clarity you don't have to install the extension. Ubuntu has already done it for you if you have the regular install.

    Code:
    $ apt list gnome-shell-extension-desktop-icons-ng
    Listing... Done
    gnome-shell-extension-desktop-icons-ng/jammy-updates,jammy-updates,now 43-2ubuntu1 all [installed,automatic]
    https://extensions.gnome.org/extensi...icons-ng-ding/

    Hmmm, doesn't seem to be quite what you were asking for.
    Last edited by donald187; 2 Weeks Ago at 10:57 PM.

  4. #4
    Join Date
    Apr 2007
    Beans
    3,120
    Distro
    Ubuntu

    Re: Pinning files/folders to dock or desktop?

    The Dock only contains applications from the application overview. You place them there yourself by pinning them to the Dock (Right-click an application in the application overview, and select "Pin to dock").

    As indicated above, Ubuntu has a desktop on which you can place files. If you care about file management, be aware that a file placed on the desktop resides in a directory ~/Desktop. If you want the file to remain in the original location, create a link to the file and place the link on the desktop.

    Next, there is the "Starred" items feature in the file manager. Drag those files to which you want quick access into the "Starred" folder in the left pane of the file manager. They remain in their original location, but will also appear in the "Starred" folder until you remove the star (right-click - unstar).

    Note also that hitting "Super" and typing a few characters of the file name will reveal matching files. This is another way to rapidly gain access to specific files. Also within the file manager, search is prominent. Whenever you start to type, a search will be initiated.
    Last edited by vanadium; 2 Weeks Ago at 01:14 PM.

  5. #5
    Join Date
    Apr 2007
    Beans
    3,120
    Distro
    Ubuntu

    Re: Pinning files/folders to dock or desktop?

    (double post)

  6. #6
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Pinning files/folders to dock or desktop?

    My one stop shop for locating files is simply Recoll (discussed in earlier threads).
    After indexing all files (and updating index daily/frequently) when I want to locate any asset I just use the query field. So Recoll launcher is seen in my docking bar, click on that, go to the button to right of Recoll query field (history of searches), pick the appropriate one, double-click on file name .. and I am there.

  7. #7
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Pinning files/folders to dock or desktop?

    In theory, xdg-open will look at the MIME type of any file, then open the correct application, passing in the data file to be used. This is how file managers used to be able to open any data file before that was deemed a security risk by some. If the file manager you use doesn't support opening a file via double-click, but does allow customized addons via a right-click menu, you could use xdg-open $@ or something similar as the generic open command for nearly any data file.

    That's the theory.

    As for placing files on the desktop, if you just want a link on the desktop and not actually moving the file, there are symbolic links and hardlinks which can be used to make a file stored in a specific data directory also accessible on the desktop. I don't know the GUI way to make a link, but the command line method is either ln {source} {target} for a hard link or ln -s {source} {target} for a symbolic/soft link.

    Hard links only work within the same file system. Besides that, they behave like the actual file. Soft links can cross file system boundaries and are like a check you use to pay someone. It says, I don't have any money, but if you ask these people by presenting this check, they will give you the money. If the bank is out of business, the check isn't any good. Softlinks are like that. They are a pointer to where the real file is located, but if the real file has been moved or deleted, then the softlink is useless.

  8. #8
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Pinning files/folders to dock or desktop?

    One interesting use of xdg-open I have found is writing tutorials with embedded xdg-open hyperlinks to downloaded scripts which can run commands. So you can write the tutorial in HTML page, hit a point in workflow where commands need to be run, and they run on the desktop through a *.desktop link. Of course the reader must trust the sources of the tutorial but it beats having to copy and paste and run code sequences in tutorials. in short frequent documents or apps can be launched from an HTML index page.

  9. #9
    Join Date
    Jan 2018
    Beans
    109

    Re: Pinning files/folders to dock or desktop?

    Quote Originally Posted by vanadium View Post
    Next, there is the "Starred" items feature in the file manager. Drag those files to which you want quick access into the "Starred" folder in the left pane of the file manager. They remain in their original location, but will also appear in the "Starred" folder until you remove the star (right-click - unstar).
    The drag and drop doesn't work for me. The Starred folder is greyed out and won't complete the drag and drop. I have to right click on the document and select "Star".

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •