SliTaz SliTaz Forum

You are not logged in.

#1 2011-10-08 19:27:13

Guest
Guest

Creating desktop folder shortcuts.

I'd like to create desktop shortcuts to folders.  For example, a shortcut to "My Windows Documents" on my windows partition.  How do I do this?

#2 2011-10-08 23:55:51

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Creating desktop folder shortcuts.

cp /usr/share/applications/pcmanfm.desktop ~/Desktop

nano ~/Desktop/pcmanfm.desktop

Name=My Windows Documents

Exec=pcmanfm /absolute/path/to/folder

Offline

#3 2011-10-14 21:47:30

babaorum
Moderator
Registered: 2011-03-29
Posts: 109

Re: Creating desktop folder shortcuts.

Hi, you can also use symbolic links:

[c]ln -s /absolute/path/to/source/folder /path/to/name-of-shortcut[/c]

As an example, if you have a "/media/WINDOWS/Users/toto/Documents" (Unix path for your "My Documents" folder in Windows Vista or higher), you can create a shortcut named "Windows My Documents" on your SliTaz desktop with this command line:

[c]ln -s /media/WINDOWS/Users/toto/Documents "$HOME/Desktop/Windows My Documents"[/c]

(I used double quotes because of spaces inside the shorcut name)

Offline

#4 2011-10-15 22:31:32

Guest
Guest

Re: Creating desktop folder shortcuts.

Thanks!

#5 2011-10-17 12:04:34

babaorum
Moderator
Registered: 2011-03-29
Posts: 109

Re: Creating desktop folder shortcuts.

Mojo's solution is as effective as mine. The difference with mine is that Mojo's one orders to use pcmanfm to open your folder from the shortcut whatever is your default file manager, while mine is just a shortcut, similar to those well known in Windows as an example, that will open with your default file manager (which is pcmanfm or another one, your choice).

If you are interested in what pcmanfm can do for you, to add features to your Mojo's style shortcut, don't forget to read [c]pcmanfm --help[/c] command result to see what options you can use.

As an example, you could open the folder pointed by the shortcut in a new tab of any existing pcmanfm window rather than a new pcmanfm window, with "-t|--new-tab" option. ;-]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]