Skip to content
Browse files

Experimental widget: support multiple arguments while creating shortcut.

  • Loading branch information...
1 parent b038222 commit 67fea31c0cf6036fdf48ae47a0c4bc1d8368f920 @bard committed Mar 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 chrome/content/dashboard/widget_experimental.js
View
4 chrome/content/dashboard/widget_experimental.js
@@ -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;
}
@@ -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);

0 comments on commit 67fea31

Please sign in to comment.
Something went wrong with that request. Please try again.