diff --git a/build/gulpfile.vscode.linux.ts b/build/gulpfile.vscode.linux.ts index 45179160a57b8..7ff90ff779caf 100644 --- a/build/gulpfile.vscode.linux.ts +++ b/build/gulpfile.vscode.linux.ts @@ -49,7 +49,7 @@ function prepareDebPackage(arch: string) { const desktops = es.merge(desktop, desktopUrlHandler) .pipe(replace('@@NAME_LONG@@', product.nameLong)) - .pipe(replace('@@NAME_SHORT@@', product.nameShort)) + .pipe(replace('@@NAME_SHORT@@', product.applicationName)) .pipe(replace('@@NAME@@', product.applicationName)) .pipe(replace('@@EXEC@@', `/usr/share/${product.applicationName}/${product.applicationName}`)) .pipe(replace('@@ICON@@', product.linuxIconName)) @@ -159,7 +159,7 @@ function prepareRpmPackage(arch: string) { const desktops = es.merge(desktop, desktopUrlHandler) .pipe(replace('@@NAME_LONG@@', product.nameLong)) - .pipe(replace('@@NAME_SHORT@@', product.nameShort)) + .pipe(replace('@@NAME_SHORT@@', product.nameShort.toLowerCase().replace(/ /g, '-'))) .pipe(replace('@@NAME@@', product.applicationName)) .pipe(replace('@@EXEC@@', `/usr/share/${product.applicationName}/${product.applicationName}`)) .pipe(replace('@@ICON@@', product.linuxIconName)) @@ -246,7 +246,7 @@ function prepareSnapPackage(arch: string) { const desktops = es.merge(desktop, desktopUrlHandler) .pipe(replace('@@NAME_LONG@@', product.nameLong)) - .pipe(replace('@@NAME_SHORT@@', product.nameShort)) + .pipe(replace('@@NAME_SHORT@@', product.nameShort.toLowerCase().replace(/ /g, '-'))) .pipe(replace('@@NAME@@', product.applicationName)) .pipe(replace('@@EXEC@@', `${product.applicationName} --force-user-env`)) .pipe(replace('@@ICON@@', `\${SNAP}/meta/gui/${product.linuxIconName}.png`))