Skip to content

Commit 4a87e67

Browse files
Kyle L. Huffdevelar
authored andcommitted
feat(linux): add missing Exec variable for passing URLs as arguments
Close #1592
1 parent 817340a commit 4a87e67

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

packages/electron-builder/src/targets/LinuxTargetHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class LinuxTargetHelper {
109109
const desktopMeta: any = Object.assign({
110110
Name: appInfo.productName,
111111
Comment: this.getDescription(targetSpecificOptions),
112-
Exec: exec == null ? `"${installPrefix}/${productFilename}/${this.packager.executableName}"` : exec,
112+
Exec: exec == null ? `"${installPrefix}/${productFilename}/${this.packager.executableName}" %U` : exec,
113113
Terminal: "false",
114114
Type: "Application",
115115
Icon: this.packager.executableName,

test/out/linux/__snapshots__/debTest.js.snap

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ exports[`custom depends 1`] = `
9393
"[Desktop Entry]
9494
Name=Test App ßW
9595
Comment=Test Application (test quite “ #378)
96-
Exec=\\"/opt/Test App ßW/Boo\\"
96+
Exec=\\"/opt/Test App ßW/Boo\\" %U
9797
Terminal=false
9898
Type=Application
9999
Icon=Boo
@@ -117,25 +117,25 @@ Array [
117117
"/",
118118
"/opt/",
119119
"/usr/",
120-
"/opt/Test App ßW/",
121-
"/opt/Test App ßW/blink_image_resources_200_percent.pak",
122-
"/opt/Test App ßW/Boo",
123-
"/opt/Test App ßW/content_resources_200_percent.pak",
124-
"/opt/Test App ßW/content_shell.pak",
125-
"/opt/Test App ßW/icudtl.dat",
126-
"/opt/Test App ßW/libffmpeg.so",
127-
"/opt/Test App ßW/libnode.so",
128-
"/opt/Test App ßW/LICENSE.electron.txt",
129-
"/opt/Test App ßW/LICENSES.chromium.html",
130-
"/opt/Test App ßW/natives_blob.bin",
131-
"/opt/Test App ßW/pdf_viewer_resources.pak",
132-
"/opt/Test App ßW/snapshot_blob.bin",
133-
"/opt/Test App ßW/ui_resources_200_percent.pak",
134-
"/opt/Test App ßW/views_resources_200_percent.pak",
120+
"/opt/Test App \\\\303\\\\237W/",
121+
"/opt/Test App \\\\303\\\\237W/blink_image_resources_200_percent.pak",
122+
"/opt/Test App \\\\303\\\\237W/Boo",
123+
"/opt/Test App \\\\303\\\\237W/content_resources_200_percent.pak",
124+
"/opt/Test App \\\\303\\\\237W/content_shell.pak",
125+
"/opt/Test App \\\\303\\\\237W/icudtl.dat",
126+
"/opt/Test App \\\\303\\\\237W/libffmpeg.so",
127+
"/opt/Test App \\\\303\\\\237W/libnode.so",
128+
"/opt/Test App \\\\303\\\\237W/LICENSE.electron.txt",
129+
"/opt/Test App \\\\303\\\\237W/LICENSES.chromium.html",
130+
"/opt/Test App \\\\303\\\\237W/natives_blob.bin",
131+
"/opt/Test App \\\\303\\\\237W/pdf_viewer_resources.pak",
132+
"/opt/Test App \\\\303\\\\237W/snapshot_blob.bin",
133+
"/opt/Test App \\\\303\\\\237W/ui_resources_200_percent.pak",
134+
"/opt/Test App \\\\303\\\\237W/views_resources_200_percent.pak",
135135
"/usr/share/",
136-
"/opt/Test App ßW/resources/",
137-
"/opt/Test App ßW/resources/app.asar",
138-
"/opt/Test App ßW/resources/electron.asar",
136+
"/opt/Test App \\\\303\\\\237W/resources/",
137+
"/opt/Test App \\\\303\\\\237W/resources/app.asar",
138+
"/opt/Test App \\\\303\\\\237W/resources/electron.asar",
139139
"/usr/share/applications/",
140140
"/usr/share/applications/Boo.desktop",
141141
"/usr/share/doc/",

0 commit comments

Comments
 (0)