Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In Windows I can create a shortcut to a file, such as a document (.doc or .rtf for example). Double-clicking the shortcut will then launch the executable that has been specified as the default for that file (e.g. MS Word or Libre Office Writer) and the document will be opened. How do I do this in Linux Mint 18? I know how to create a desktop shortcut to an executable, but not to a file so that its specified executable will be launched.
To TxLonghorn:
Having tried your suggestions (for which many thanks), I realise that I had given an incomplete description of my requirement. The stumbling block appears to be that all my files are stored on a NAS drive (shared with Windows).
Right-clicking the document doesn't give me the option to create a link. Dragging to the desktop whilst holding CTRL+SHIFT did create a shortcut, but when double-clicked it gave an error: "The link ... Is broken" Its target does not exist.
When I copied the files into Documents in the Home directory, the first method still did not give a link option, but the second method worked. However, that is not where my files are stored. They will continue to be stored on the NAS drive, so I am still looking for a solution.
To TxLonghorn:
Having tried your suggestions (for which many thanks), I realise that I had given an incomplete description of my requirement. The stumbling block appears to be that all my files are stored on a NAS drive (shared with Windows).
Right-clicking the document doesn't give me the option to create a link. Dragging to the desktop whilst holding CTRL+SHIFT did create a shortcut, but when double-clicked it gave an error: "The link ... Is broken" Its target does not exist.
When I copied the files into Documents in the Home directory, the first method still did not give a link option, but the second method worked. However, that is not where my files are stored. They will continue to be stored on the NAS drive, so I am still looking for a solution.
I've no experience with NAS. Can a NAS volume be mounted on the desktop? If so, doing so first before using TxLonghorn's CTRL+SHIFT+drag suggestion may work. I have to first mount my PC's secondary HDD's volume before any of the shortcuts I've created for it will work.
To MIJ-VI: Yes, the NAS drive is mounted on the desktop.
To TxLonghorn: Clicking the + sign in the top right does give me the option to create a link, but when I select it I am given an error: "The target does not support symbolic links".
Wow, that's pretty weird.. I'd have thought creating a link would work (I'm using xfce instead of cinnamon, but seems to be the same issue). I did figure out a way to do it but it seemed like a long way to do this, rather than just working directly from the NAS folder. Here's how I did it to an SMB share on my NAS.
Create a Launcher (I believe on cinnamon this is the same as xfce... right click the desktop/Create Launcher)
Name the launcher
Command: libreoffice --writer smb://path/to/filename (mine looks like this: libreoffice --writer smb://192.168.1.5/Disk_1/Data/data.ods). If you have spaces in the path, surrounding the path in quotes should fix that, but I didn't test it.
Save the launcher. When you click it, it will ask to mark it executable.. choose yes, and it should launch no problem.
If you need libre office apps other than --writer simply libreoffice --help to see their switches.
Brilliant. Long-winded as you remarked, but it worked perfectly.The only slight difference was that it didn't ask to be marked as executable.
Many thanks indeed for your help.
Brilliant. Long-winded as you remarked, but it worked perfectly.The only slight difference was that it didn't ask to be marked as executable.
Many thanks indeed for your help.
Hmm, I find that a little odd... Must be a difference in cinnamon and xfce.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.