How to add file shortcut on panel?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Cap
Level 2
Level 2
Posts: 97
Joined: Sat Dec 21, 2019 8:56 pm

How to add file shortcut on panel?

Post by Cap »

In Cinnamon how to add a shortcut to a text file on the panel?
User avatar
diapason
Level 4
Level 4
Posts: 377
Joined: Mon Apr 09, 2018 5:31 pm
Location: Montevideo, Uruguay

Re: How to add file shortcut on panel?

Post by diapason »

If you just want to be able to open the file and don't have to have it in text file format, first, save the file you want to use in PDF format
Right click on the menu button and select configure
Click on the menu tab and then click on open menu editor
Click on Office in the left hand window and select new item from the options on the right
Enter a name for your file in the Name box and then in Command, use the browse button to find the file you want and double click it to put it in the command box
Use your arrow keys to move the cursor to the extreme left of your command line and type evince followed by a space
Enter a comment if you wish
Click OK and then click Close and then close the Menu window
Now open the Menu and click on Office and you should see your file name there with (Evince) after it
Right click the file name and select Pin to Taskbar.

It works for me every time.

EDIT Further to my earlier post, it occurred to me that you should be able to do this also with text files although I have never had the need.

I had a look at two text editors (the default text editor in LM20 and also Gedit).

I found that if I used the relevant text editor launcher command instead of evince, it will actually work for text files written with that editor.

So, for example if you replace evince with gedit %U for a file written with Gedit, you can make a panel shortcut as described above. Likewise, for a Libre Office Writer file, you put libreoffice --writer and so on.

diapason
Linux Mint 20.1 Cinnamon
Evolution Mail Client 3.38.0
Post Reply

Return to “Newbie Questions”