PDA

View Full Version : how to create shortcut to a directory



kamlmish
28th January 2011, 05:08
Hi
I need to create a shortcut for a browsed directory in linux , qt
1) I am using the QFile::link api , but I just wanted to know what extension to the link should be given.
like in windows , we have ".lnk" as the filename extension , what could be the prototype in linux.

2) Whether the appropriate directory would open up when I click the shortcut link

ChrisW67
28th January 2011, 05:18
1) I am using the QFile::link api , but I just wanted to know what extension to the link should be given.

Linux has no special requirements of symbolic link names.


2) Whether the appropriate directory would open up when I click the shortcut link

Unless a program makes special effort to manipulate the symbolic link itself then opening the link will open the target file/directory.