LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 11-27-2016, 03:41 PM   #1
MikeinGrange
LQ Newbie
 
Registered: Oct 2015
Location: England
Distribution: 19.3 Mint Cinnamon
Posts: 23

Rep: Reputation: Disabled
Desktop shortcut to a file


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.
 
Old 11-27-2016, 07:21 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Which desktop environment are you using?
 
Old 11-28-2016, 03:59 AM   #3
MikeinGrange
LQ Newbie
 
Registered: Oct 2015
Location: England
Distribution: 19.3 Mint Cinnamon
Posts: 23

Original Poster
Rep: Reputation: Disabled
Desktop shortcut to a file

Cinnamon desktop with Mint 18.3
 
Old 11-28-2016, 06:47 AM   #4
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
In your file manager, right-click on the document > Create Link
Then move the link to the Desktop.

Or you can create a link by dragging the document to the Desktop while holding down CTRL+SHIFT
 
Old 11-28-2016, 09:10 AM   #5
MikeinGrange
LQ Newbie
 
Registered: Oct 2015
Location: England
Distribution: 19.3 Mint Cinnamon
Posts: 23

Original Poster
Rep: Reputation: Disabled
Desktop shortcut to a file

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.
 
Old 11-28-2016, 05:03 PM   #6
MIJ-VI
Member
 
Registered: May 2010
Posts: 65

Rep: Reputation: 3
Quote:
Originally Posted by MikeinGrange View Post
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.
 
Old 11-29-2016, 06:10 AM   #7
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by MikeinGrange View Post
Right-clicking the document doesn't give me the option to create a link.
Maybe you need to expand the right-click options by clicking on the + at the top right?
Click image for larger version

Name:	NemoContext.png
Views:	315
Size:	57.2 KB
ID:	23643

Last edited by TxLonghorn; 11-29-2016 at 06:36 AM.
 
Old 11-29-2016, 09:45 AM   #8
MikeinGrange
LQ Newbie
 
Registered: Oct 2015
Location: England
Distribution: 19.3 Mint Cinnamon
Posts: 23

Original Poster
Rep: Reputation: Disabled
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".

So I am back to square one.
 
Old 12-01-2016, 06:37 AM   #9
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
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.

Hope that helps
 
1 members found this post helpful.
Old 12-01-2016, 08:38 AM   #10
MikeinGrange
LQ Newbie
 
Registered: Oct 2015
Location: England
Distribution: 19.3 Mint Cinnamon
Posts: 23

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-01-2016, 09:23 AM   #11
IndyGunFreak
Senior Member
 
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355

Rep: Reputation: 70
Quote:
Originally Posted by MikeinGrange View Post
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.

Glad it helped.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create desktop (or task bar) shortcut to some file on Debian LXDE, OpenBox? vvladimir Linux - Newbie 2 06-08-2014 06:40 AM
how to create desktop shortcut for any exe file for all users exsting in the system satyabel Linux - Newbie 3 03-20-2009 04:14 AM
How to create a desktop shortcut to a JAR file? jdruin Linux - Newbie 4 01-04-2009 03:55 PM
desktop shortcut for File System 5muggl3r Linux - Laptop and Netbook 8 12-26-2007 10:01 AM
Creating a desktop shortcut with a script file ben44b Linux - Newbie 5 01-07-2007 07:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration