X and Fluxbox :: Slightly OT: How to create a shortcut to a dir?
How can I create a shortcut on the desktop so thar clicking the shortcut will open a certain dir/folder? I'm using DSL for a "surfboard" for my wife, so I really need this ;)
Thanks Open an xterminal window and type:
beaver /home/.xtdesktop/newicon.lnk
Then type these lines into beaver:
Code Sample
table Icon Type: Program Caption: Tmp Folder Command: emelfm /tmp Icon: .xtdesktop/emelfm.gif X: 272 Y: 263 end
Save the file and exit beaver.
Then go to the fluxbox start menu and go to
Desktop -> No icons
and then
Desktop -> Icons onlyOne thing to keep in mind when doing this, make sure the lines in the .lnk file do not end with whitespace (space or tab) or your icon will not show. It took me forever to find the source of this trouble, so i just wanted to pass that on to help others not make the same mistake.
There's also a flua script that will give you a graphical interface for icon creation, if you're more comfortable clicking than typing. http://dsl-mirror.vectori.net/tools/mikshaw/dsl-create_icon.flua.txt I can't remember if this is the lastest, but it *should* work.I manage to create a icon, but it doesn't take me to any specific folder, just opens emelfm the command is emelfm /home/dsl/maria If I click the icon, it will take me to /home/dsl That command should do it, right?The command should do it.
However, you do need to save your file before you exit beaver.
Also, the original icon and the new icon have the exact same location on the desktop (x=272, y=263)
If you are using an older version of DSL, the two icons will be in the same spot and one will be sitting on top of the other.
Try a Single-click and drag the icon over to a different spot on the screen.
Then double click on each icon to figure out which one is your newly created icon.Next Page...
original here.