Add Document Shortcut to Panel (Solved)

Forum rules
Before you post please read this

Add Document Shortcut to Panel (Solved)

Postby TeXaCo on Fri Aug 30, 2013 12:43 am

I am trying out Xfce desktop coming from KDE. Can anybody help me out on how to add a shortcut to a word document onto the panel in Xcfe. I know you can add a launcher but I am not familiar with all the commands. I figured out what to put in to open a folder but not a single file.

Any help is appreciated.
Last edited by TeXaCo on Fri Aug 30, 2013 9:52 am, edited 1 time in total.
User avatar
TeXaCo
Level 1
Level 1
 
Posts: 18
Joined: Tue Mar 12, 2013 12:22 am

Linux Mint is funded by ads and donations.
 

Re: Add Document Shortcut to Panel

Postby caribriz on Fri Aug 30, 2013 2:49 am

Hi TeXaCo -

If I understand correctly - you want to click a panel shortcut and have it open a Word document in LibreOffice Writer???

If so - this will create a panel shortcut to open a Word document called, for example, My-file.docx from Documents folder with LibreOffice Writer -

Create the launcher in the panel -

Right-click Panel > click Panel > Add new items > click Launcher > Add > close
Move launcher up the list, if desired
Right-click the new launcher in the panel > click Properties > General tab > click 2nd icon down on the right - "Add a new empty item"

Fill in the fields, for my example:
Name: My-file
Command: lowriter /home/my-user-name/Documents/My-file.docx
Icon: click "No icon" button > click down arrow next to "Select icon from" > File type icons > application-msword

If it was just a plain text file, you could use this command in the launcher instead to open it in gedit:
gedit /home/my-user-name/Documents/My-file
Image
Desktop: C2D E6400 / Asus P5LD2SE / 2GB ram / Asus GeForce 210 / 320GB (WinXP) & 1TB (Mint - various)
Laptop: Asus A53E-SX1455V - i5 2450M / 4GB ram / Intel HD 3000 / 500GB (Win7/Mint 17 Cinnamon)
caribriz
Level 5
Level 5
 
Posts: 887
Joined: Mon Nov 28, 2011 7:43 am

Re: Add Document Shortcut to Panel

Postby altair4 on Fri Aug 30, 2013 7:17 am

The following isn't a better way nor is it any more intuitive than the one outlined above - it's just another way:

[1] Create the launcher on the desktop first:

Right Click the desktop > Create launcher.
Give it a name and icon and enter the command to wherever your file is located:
Code: Select all
lowriter /home/my-user-name/Documents/My-file.docx

Note: Double click this new launcher to make sure it works. You will likely get a "do you want to make it executable" message which you want to do.

[2] Then put it on the panel.

2 ways to do this:

*** Drag and drop it onto the panel.
This seems to depend on humidity levels and sun spot activity to work successfully but it can be done.

*** Right click the desktop launcher > Open with "Create Launcher on the panel"
It will ask you which panel if you have multiple.

You can then right click > move to place it exactly where you want it on the panel since by default it places it on the far right side of the panel where you would most likely never place it yourself.

Once it's on the panel you can remove the launcher on the desktop itself.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6082
Joined: Tue Feb 03, 2009 10:27 am

Re: Add Document Shortcut to Panel

Postby TeXaCo on Fri Aug 30, 2013 8:45 am

Both of you guys are awesome!! Both ways work perfect. I now have shortcuts on the panel for the documents I need.

I do have another question if you don't mind.

To get it to work I needed to remove the spaces in the name of the document. Is there a way that I could type the command for it to recognize the space in a name? It's not a big deal. I can rename the ones I need, I just figured I would ask.

Thanks again
User avatar
TeXaCo
Level 1
Level 1
 
Posts: 18
Joined: Tue Mar 12, 2013 12:22 am

Re: Add Document Shortcut to Panel

Postby altair4 on Fri Aug 30, 2013 8:58 am

Put quotes around the entire path, for example:
Code: Select all
lowriter "/home/my-user-name/Documents/Something with Spaces.docx"
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6082
Joined: Tue Feb 03, 2009 10:27 am

Re: Add Document Shortcut to Panel

Postby altair4 on Fri Aug 30, 2013 9:40 am

This is more an FYI but if you are running out of real estate because of all these launchers you can use the technique posted by caribriz to make one of your new launchers have a sub-menu of launchers.


Right click the launcher you just created and select Properties > General Tab.

You will notice down the right side the fourth button down - looks like a page with a "+" sign on the bottom left side of the page. Use that to create another launcher to another file. When you select close your original panel icon changes to include a little arrow next to it. If you select that arrow it will point to the 2nd , 3rd, 4th .. launcher you might create.

You end up with a launcher that has a sub-menu of launchers within it.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6082
Joined: Tue Feb 03, 2009 10:27 am

Re: Add Document Shortcut to Panel

Postby TeXaCo on Fri Aug 30, 2013 9:52 am

Awesome! It works perfect.

Thank you so much for the help. I really do appreciate it.
User avatar
TeXaCo
Level 1
Level 1
 
Posts: 18
Joined: Tue Mar 12, 2013 12:22 am

Linux Mint is funded by ads and donations.
 

Return to XFCE

Who is online

Users browsing this forum: No registered users and 5 guests