Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
Experimental widget: support multiple arguments while creating shortcut.
Browse files Browse the repository at this point in the history
  • Loading branch information
bard committed Mar 25, 2009
1 parent b038222 commit 67fea31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/dashboard/widget_experimental.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ experimental.createDesktopShortcut = function() {
cmd += 'Name=' + name + '\n';
cmd += 'Type=Application\n';
cmd += 'Comment=Instant Messenger\n';
cmd += 'Exec=\'' + targetPath + '\' ' + arguments + '\n';
cmd += 'Exec=\'' + targetPath + '\' ' + arguments.join(' ') + '\n';
cmd += 'Icon=' + iconPath + '\n';
return cmd;
}
Expand Down Expand Up @@ -126,7 +126,7 @@ experimental.createDesktopShortcut = function() {
appBinaryFile.path,
chromeToFileUrl('chrome://sameplace/skin/logo32x32.png').file.path,
'SamePlace',
'-sameplace');
['-sameplace']);
save(shortcutCommand, shortcutFile);

this._prompt.alert(null, 'Notification', 'Shortcut saved as ' + shortcutFile.path);
Expand Down

0 comments on commit 67fea31

Please sign in to comment.