Skip to content

Commit

Permalink
feat(linux): add missing Exec variable for passing URLs as arguments
Browse files Browse the repository at this point in the history
Close #1592
  • Loading branch information
Kyle L. Huff authored and develar committed May 31, 2017
1 parent 817340a commit 4a87e67
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/electron-builder/src/targets/LinuxTargetHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class LinuxTargetHelper {
const desktopMeta: any = Object.assign({
Name: appInfo.productName,
Comment: this.getDescription(targetSpecificOptions),
Exec: exec == null ? `"${installPrefix}/${productFilename}/${this.packager.executableName}"` : exec,
Exec: exec == null ? `"${installPrefix}/${productFilename}/${this.packager.executableName}" %U` : exec,
Terminal: "false",
Type: "Application",
Icon: this.packager.executableName,
Expand Down
38 changes: 19 additions & 19 deletions test/out/linux/__snapshots__/debTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exports[`custom depends 1`] = `
"[Desktop Entry]
Name=Test App ßW
Comment=Test Application (test quite “ #378)
Exec=\\"/opt/Test App ßW/Boo\\"
Exec=\\"/opt/Test App ßW/Boo\\" %U
Terminal=false
Type=Application
Icon=Boo
Expand All @@ -117,25 +117,25 @@ Array [
"/",
"/opt/",
"/usr/",
"/opt/Test App ßW/",
"/opt/Test App ßW/blink_image_resources_200_percent.pak",
"/opt/Test App ßW/Boo",
"/opt/Test App ßW/content_resources_200_percent.pak",
"/opt/Test App ßW/content_shell.pak",
"/opt/Test App ßW/icudtl.dat",
"/opt/Test App ßW/libffmpeg.so",
"/opt/Test App ßW/libnode.so",
"/opt/Test App ßW/LICENSE.electron.txt",
"/opt/Test App ßW/LICENSES.chromium.html",
"/opt/Test App ßW/natives_blob.bin",
"/opt/Test App ßW/pdf_viewer_resources.pak",
"/opt/Test App ßW/snapshot_blob.bin",
"/opt/Test App ßW/ui_resources_200_percent.pak",
"/opt/Test App ßW/views_resources_200_percent.pak",
"/opt/Test App \\\\303\\\\237W/",
"/opt/Test App \\\\303\\\\237W/blink_image_resources_200_percent.pak",
"/opt/Test App \\\\303\\\\237W/Boo",
"/opt/Test App \\\\303\\\\237W/content_resources_200_percent.pak",
"/opt/Test App \\\\303\\\\237W/content_shell.pak",
"/opt/Test App \\\\303\\\\237W/icudtl.dat",
"/opt/Test App \\\\303\\\\237W/libffmpeg.so",
"/opt/Test App \\\\303\\\\237W/libnode.so",
"/opt/Test App \\\\303\\\\237W/LICENSE.electron.txt",
"/opt/Test App \\\\303\\\\237W/LICENSES.chromium.html",
"/opt/Test App \\\\303\\\\237W/natives_blob.bin",
"/opt/Test App \\\\303\\\\237W/pdf_viewer_resources.pak",
"/opt/Test App \\\\303\\\\237W/snapshot_blob.bin",
"/opt/Test App \\\\303\\\\237W/ui_resources_200_percent.pak",
"/opt/Test App \\\\303\\\\237W/views_resources_200_percent.pak",
"/usr/share/",
"/opt/Test App ßW/resources/",
"/opt/Test App ßW/resources/app.asar",
"/opt/Test App ßW/resources/electron.asar",
"/opt/Test App \\\\303\\\\237W/resources/",
"/opt/Test App \\\\303\\\\237W/resources/app.asar",
"/opt/Test App \\\\303\\\\237W/resources/electron.asar",
"/usr/share/applications/",
"/usr/share/applications/Boo.desktop",
"/usr/share/doc/",
Expand Down

0 comments on commit 4a87e67

Please sign in to comment.