javascript - Copy XREExeF and paste as file shortcut -
javascript - Copy XREExeF and paste as file shortcut -
in addon launching firefox profiles doing this:
var exe = fileutils.getfile('xreexef', []); //this gives path executable var process = cc['@mozilla.org/process/util;1'].createinstance(ci.nsiprocess); process.init(exe); var args = ['-p', profname, '-no-remote']; //-new-instance if (url) { args.push('about:home'); args.push(url); } process.run(false, args, args.length);
so adds command line arguments , launches it. leads problems. users want pin icon , pins firefox.exe
. users seek alter icon.
wikipedia says os back upwards shortcuts: http://en.wikipedia.org/wiki/file_shortcut
so wanted re-create xreexef
, paste shortcut , add together command line arguments it.
edit: @nmaier know there no cross-os method. can please show me os specific methods.
no, there no cross-platform way create shortcuts. in fact there not cross-browser format shortcuts, the wikipedia page referenced tells you. instead each platform uses it's own type(s) of links:
windows:.lnk
files , hardlinks , junctions. *nix: (symbolic) links (man 3 link
, man symlink
, `man ln) some *nix desktop environments: .desktop
files. other *nix desktop environments: whatever want, if any. each of these things behaves differently. ntfs/*nix hard links not files, different names same file.
also, pinning you're describing specific windows, anyway. other desktop environments may utilize different pinning, if offer comparable feature @ all, or @ to the lowest degree pinning equivalents may have different semantics.
javascript file firefox-addon desktop-shortcut
Comments
Post a Comment