Creating shortcuts for files

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
12 years ago
2 years ago

People

(Reporter: atg2dg, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060713 Firefox/1.5.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060713 Firefox/1.5.0.4

There is no way to create a shortcut/symlink/alias for a file using nsILocalFile (or any other XPCOM as far as i know) in a crossplatform way. For Windows a shortcut can be created as a file (although the information about the format of the file is not very easy available), but the symlinks and aliases as far as i know can't be created like that, and even if they can it means that a developer would have to deal with at least 3 different file formats (i have no idea what are the equivalents for the other OSes and how they are created). It would be much cleaner to have a function like file.createLink(dirToCreateIn,type), where file and dirToCreateIn are nsILocalFile - s, and type is the type of the link - soft or hard (for linux for example, but i hear MS will have similar type of links in Vista). A function like that will be very helpful when creating applications for XULRunner, or extensions working on the filesystem. Like my extension Firefly - it's a file manager and normally a filemanager needs a way to create shortcuts of files.

Reproducible: Always

Updated

12 years ago
Version: unspecified → 1.5.0.x Branch
Component: OS Integration → File Handling
Product: Firefox → Core
QA Contact: os.integration → file-handling
Version: 1.5.0.x Branch → unspecified

Updated

10 years ago
Blocks: 484290

Updated

2 years ago
Component: File Handling → File Handling
Product: Core → Firefox
You need to log in before you can comment on or make changes to this bug.